我的脚本文件
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
null passwords = yes
#bind interfaces only = yes
nt acl support = true
map to guest = Bad Password
encrypt passwords = yes
stat cache size = 128
server string = xasunsamba
getwd cache = yes
workgroup = workgroup
deadtime = 1
#shared mem size = xasunsamba
protocol = NT1
netbios name = xasunsamba
socket options = TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768
read size = 32768
security = share
os level = 30
auto services = global
dos charset= cp936
[test1]
read list = nobody
valid users = nobody,@nobody
writable = yes
path = /11/test1
write list = xasun
public = yes
[test2]
read list = nobody
valid users = nobody,@nobody
writable = yes
path = /11/test2
write list = xasun
public = yes
[test3]
read list = nobody
valid users = nobody,@nobody
writable = yes
path = /test3/tv
write list = xasun
public = yes
[test4]
read list = nobody
valid users = nobody,@nobody
writable = yes
path = /11/test4
write list = xasun
public = yes
[uptest]
read list = xasun
valid users = xasun,@xasun
writable = yes
path = /11
write list = xasun
public =yes