samba如何对组 设置权限?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
7994584
帖子: 3
注册时间: 2008-04-03 20:40

samba如何对组 设置权限?

#1

帖子 7994584 » 2008-08-17 13:43

目的:网吧共享用,只有网管的账号有写的权限,顾客为只读!
过程:
新建了2个组,groupwrite组 为全部权限
groupread组 为只读权限
现在的问题是 groupwrite组 中的成员 能进,但不能写
/home/ftp/samba目录已经设了 777的权限了

把我搞晕了!!







附上我的smb.conf

#smb.conf
[glboal]
workgroup = wordgroup
server string = smb server
netbios name = mysmb
client code page = 936
socket address = 192.168.0.202
security = user
smb password file = /etc/samba/smbpasswd
deadtime = 10
max poen files = 1000
socket options = TCP_NODELAY

[homes]
comment = home directories
browseable = yes
writable = no
create mod = 0770

[NetDisk]
comment = NetDisk
path = /home/ftp/samba
write list = @groupwrite
valid users = @groupread,@groupwrite
writable = yes
7994584
帖子: 3
注册时间: 2008-04-03 20:40

#2

帖子 7994584 » 2008-08-17 14:22

:cry: 有人帮忙不?
angelus
帖子: 445
注册时间: 2007-08-27 17:31

#3

帖子 angelus » 2008-08-17 22:47

你可以实验下把/home/ftp/samba这个目录的组设置为groupwrite,
sudo chown root.groupwrite /home/ftp/samba
你能学会世界上所有语言来叫一种鸟的名字,当你知道所有这些名字叫法后,却对这种鸟一无所知~
理查德-费曼
回复