# Global parameters
[global]
workgroup = RALAB
server string = Samba Server %v
guest ok = yes
guest account = student
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
[homes]
comment = Home Directories
read only = No
browseable = No
[document]
comment = Public Document
path = /home/samba/staff/document
public = no
guest ok = yes
write list = @staff
admin users = @staff
[software]
comment = Staffs' Software
path = /home/samba/staff/software
valid users = @staff, @graduate
write list = smbadmin
create mask = 0554
[exchange]
comment = Staffs' Exchange Files
path = /home/samba/staff/exchange
valid users = @staff, @graduate
write list = @staff, @graduate
[student]
comment = Students' Files
path = /home/samba/student-incoming
invalid users = @graduate
write list = @staff,student
admin users = @staff,student
今天修改的samba配置文件,实验室老师的要求跟原来的有点不一样,只能够再改一下配置文件了。
上面是配置文件,实现的就是不同组,不同权限的读写权限的设置。
这里要指出一点,就是关于exchange的设置,这里可以用来交换文件,但是你不能够删除别人的文件。这里就有一点小技巧,就是设置Unix的粘着位,
chmod -R 1777 Dir
^_^
阅读(2602) | 评论(0) | 转发(0) |