samba权限问题
发布时间:2010-01-08 17:47:27来源:红联作者:pipizi
最近把我的服务器从fedora 11升级到fedora 12 , 服务器主要是做文件服务器用的, 我共享一个文件夹,设置好权限, 发现有问题。
以下是我samba 的设置。
[global]
workgroup = FYSH
netbios name = _server
server string = company data folders
interfaces = 10.14.0.0/16
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
[Testing]
comment = testing data
path = /data/testing
browseable = yes
writeable = yes
write list = @testing
force group = testing
create mask = 0770
force create mode = 0770
directory mask = 0770
force directory mode = 0770
drwxrwx--- 3 tomzu testing 4096 2010-01-07 12:40 testing
这个testing 文件夹属主是tomzu, 工作组 testing, 他们都是rwx的权限,但是我发现实际情况是,不是testing组的用户,不但可以访问,而且还有写的权限。
samba 的版本是
[root@_server ~]# rpm -qa |grep samba
samba-3.4.2-47.fc12.x86_64
samba-common-3.4.2-47.fc12.x86_64
samba-client-3.4.2-47.fc12.x86_64
samba-winbind-clients-3.4.2-47.fc12.x86_64
samba-winbind-3.4.2-47.fc12.x86_64
请同行高手指教。