Ubuntu で smbd 経由で公開した HOME を Windows から共有したのだが、Cygwin から user の実行許可ビット(execute bit)が変更できない。
group や othre のは変更できる。
具体的には
group や othre のは変更できる。
具体的には
$ ls -l hello.sh -rwxr-xr-x 1 Unknown+User Unix_Group+1000 31 5月 19 18:27 hello.sh
$ chmod -x hello.sh $ ls -l hello.sh -rwxr--r-- 1 Unknown+User Unix_Group+1000 31 5月 19 18:27 hello.shとか
$ ls -l hello.sh -rw-r--r-- 1 Unknown+User Unix_Group+1000 31 5月 19 18:27 hello.sh
$ chmod +x hello.sh $ ls -l hello.sh -rw-r-xr-x 1 Unknown+User Unix_Group+1000 31 5月 19 18:27 hello.shみたいな感じ。
「samba 実行属性」でググると以下のページを見つけた。
なんでも、samba のデフォルト設定では Windows 側の archive 属性を samba 側で user の実行属性に割り当てる動作になっているらしく、これを無効にすれば OK らしい。
と言うことで、以下の設定を /etc/samba/smbd.conf に追加して、smbd を再起動すると解決した。
- Qiita / @haoling /2015-01-29, update: 2015-01-29: sambaでファイルを上書きすると実行属性が付いてしまう場合の対処
- 色々日記(ざ・めも) / 2008-09-13: sambaで実行ファイルを更新すると実行フラグが外れる
なんでも、samba のデフォルト設定では Windows 側の archive 属性を samba 側で user の実行属性に割り当てる動作になっているらしく、これを無効にすれば OK らしい。
と言うことで、以下の設定を /etc/samba/smbd.conf に追加して、smbd を再起動すると解決した。
map archive = no
タグ
コメントをかく