|
rhel5配置samba
1.添加两个用户user1和user2,smbpass -a user1和user2
创建目录share,修改宿主chown -R user1.user1 /usr/tmp/share
更改权限 chmod -R 777 /usr/tmp/share
smb.conf 如下:
security = user
[share]
path = /usr/tmp/share
valid users = user1 user2
public = no
writable =yes
write list = user1 user2
user1登录创建文件或文件夹,user2登录没有权限增删改文件内容??
2.同理创建组用户
useradd group
useradd -G group user1/user2
smbpasswd -a user1/user2
chown -R group.group /usr/tmp/share
chmod -R 777 /usr/tmp/share
smb.conf如下:
security = user
[share]
path = /usr/tmp/share
valid users = @group
public = no
writable = yes
write list = @group
遭遇同样情况,group组下两成员在相同的文件夹宿主都为group的情况下,创建文件后,都不能互相修改对方的文件名或文件内容。请各位大虾指点,谢谢了! |
|