smb.conf configure
[global]
encrypted passwords = yes
null passwords = yes
security = user
netbios name = TeacherNAS
workgroup = WORKGROUP
os level = 49
local master = no
server string = Teacher Network Disks Share
log level = 0
max log size = 1000
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384
client code page = 936
character set = UTF-8
unix charset = UTF-8
dos charset = ASCII
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = YES
smb passwd file = /usr/local/etc/samba/smbpasswd
private dir = /usr/local/etc/samba
passdb backend = smbpasswd
[tea]
comment = 清茶 专用目录
path = /share/qingcha
public = YES browseable = NO
writeable = YES
printable = NO
invalid users = @vuser
[zylsf]
comment = 雨林之舟专用目录
path = /share/zylsf
public = YES
browseable = YES
writeable = YES
printable = NO
valid users = zylsf,tea
invalid users = vuser
[manage]
comment = Administrator login(Write And Reader)
path = /share/software
public = YES browseable = YES
writeable = YES create
mode = 0755 directory
mode = 0755
printable = NO
valid users = zylsf,tea
username map = /user/local/etc/samba/usermap.txt
[software]
comment = 软件共享目录 只读 (Only Reader)
path = /share/software
public = YES
browseable = YES
writeable = NO
printable = NO
