
Ubuntu日本語フォーラム

ログインしていません。
ubuntu(linux)を使って3ヶ月の初心者です。解決できない問題で困っています。よろしくお願いいたします。
他のメンバーの方も似ているご質問をされていますが、投稿通りでは解決ができませんでした。
Netatalk3と同じフォルダーをsambaでも使用しています。
アカウントは共通でubuntuで作成しました。
[global]
security = user
workgroup = WORKGROUP
usershare owner only = false
encrypt passwords = yes
unix password sync = yes
unix extensions = no
force group = WORKGROUP
writable = yes
guest ok = yes
force create mode = 0660
force directory mode = 0760
;directory security mask = 0000 #効果無し;
Mac userの方は問題なく共有が出来ていまして、windowsPCクライアントが作ったフォルダー内でMac userが変更、削除、追加が出来ません。
ls -l で見ますと、
sambaは0755
drwxr-xr-x 2 username workgroup 2 abc
このように指定したものは全く反映されていません。
ご教示いただけましたら幸いです。
よろしくお願いいたします。
オフライン
自己解決しました。
http://askubuntu.com/questions/210808/set-umask-set-permissions-and-set-acl-but-samba-isnt-using-those
この部分に書いてありました。
One simple note. Look for "obey pam restrictions" parameter. By default it is OFF or NO or FALSE, but should it be turned ON explicitly, and the umask takes effect! I lost about a week, trying to figure out why my files created with 744 permissions regadless of force create mode 666 or 777... Problem was in this paramater turned ON, and I can't remember why I did that. Turning it OFF solved the rw-vs-ro problem
私が間違っていたのは、
; obey pam restrictions = yes
obey pam restrictions = no
ここを yes にしていたことで、pamを無視していました。
現在はforce directory mode や force create mode が有効になり、書き込みが出来る様になりました。
報告いたします。
ありがとうございました。
オフライン