webDAVとsambaの共存 PDF 印刷 Eメール
作者: 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
 

Add your comment

Your name:
タイトル:
Comment:
Use OpenOffice.org

Blog Calendar

< 2月 2008 >
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
18 19 20 21 22 23
24 25 26 27 28 29  
route20.org, Powered by Joomla! and designed by SiteGround web hosting