贴一个成功的配置文件,系统是centos
[global]
workgroup = WORKGROUP
security = user
public = no
guest ok = no
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[data]
comment = Home Directories
path = /data
browseable = yes
writable = yes
valid users = root
log file = /var/log/samba/log.%m
max log size = 50
deadtime = 10
display charset = UTF8
create mask = 0775
directory mask = 0775
admin users = root
注意事项:
1、不要加注释,检查空格!
贴一个配置项参数详解