hack のためのネタ帳, etc,,,

状況

Ubuntu で smbd 経由で公開した HOME を Windows から共有したのだが、Cygwin から user の実行許可ビット(execute bit)が変更できない。
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 を再起動すると解決した。
map archive = no

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

管理人/副管理人のみ編集できます