samba无法删除文件
本帖最后由 zbh173 于 2011-12-30 19:58:48 编辑
使用getfcal 为文件夹添加用户,然后通过samba共享,为何无法删除用户创建的文件,但是可以删除文件夹及文件夹下面的内容。
文件夹用户及组权限:
root@DigiOcean:/home# getfacl zzz
# file: zzz
# owner: root
# group: root
user::rwx
user:hhh:rwx
group::r-x
mask::rwx
other::r-x
文件夹权限:
root@DigiOcean:/home# ls -l |grep zzz
drwxrwxr-x+ 2 root root 4096 Dec 30 18:11 zzz
smb.conf配置:
# from localhost.localdomain (127.0.0.1)
# Date: 2000/11/16 17:29:17
# Global parameters
[global]
log file = /var/log/samba/%U
name resolve order = wins lmhosts bcast
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY
use sendfile = yes
follow symlinks = No
username map = /etc/samba/smbusers
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
dns proxy = No
netbios name = nasdd
unix password sync = Yes
workgroup = MSHOME
add user script = useradd %u
security = user
display charset = UTF8
unix charset = UTF8
dos charset = UTF8
max log size = 50
##########################
max protocol = SMB2
strict allocate = yes
aio read size = 4096
aio write size = 4096
##########################
#
##########################
use sendfile = yes
&