操作系统:CentOS 5.1
服务器程序:samba 3.x
功能描述:
1.download目录,除了tlm(管理员)外,其他人只能读不能写。
2.upload目录,所有人可以写,既公共文件夹
3.project目录,smbmaster组的人可以写,其它人只能读。
smb.conf主要代码部分:
[download]
comment = read only
path = /home/samba/download/
public = no
valid users = @newland,@smbmaster
write list = tlm
create mode = 0775
directory mode = 0775
[upload]
comment = read+write
path = /home/samba/upload/
public = yes
writeable = yes
create mode = 0777
directory mode = 0777
[project]
comment = read only
path = /home/samba/iso9000/
public = no
valid users = @newland,@smbmaster
write list = @smbmaster
create mode = 0775
directory mode = 0775
注意事项:
/home/samba下各个子目录的权限要注意分配好
一定要理解好二进制权限:4读 2写 1执行
阅读(866) | 评论(0) | 转发(0) |