|
作者: mune
|
|
2008年 2月 17日(日曜日) 12:07 |
|
sambaとwebDAVを共存させるには、sambaのアクセス権限のディレクトリにapache権限でアクセスする必要がある。
aclを利用して両方のアクセスを実現する。
(apache権限はnobodyとして表示)
##fstab編集 vi /etc/fstab LABEL=/home /home ext3 defaults,acl 1 2 mount -o remount /home
##samba共有ディレクトリ準備 chmod 770 /home/samba/ chown username.groupname /home/samba/user-d
##acl設定 setfacl -R -m g:nobody:rwx,g:nobody:rwx /home/samba/user-d setfacl -R -m g:username:rwx,g:groupname:rwx /home/samba/user-d
##acl確認 ll /home/samba/ drwxrwx---+ username homename /home/samba/user-d ※acl有効だと[+]が付く getfacl /home/samba/user-d/ ※実際の権限付け確認
##解除 setfacl -b /home/samba/user-d/ ※aclが解除できる
|
|
最終更新 2010年 11月 08日(月曜日) 23:02 |