samba允许匿名用户访问
[global]
security = user
passdb backend = tdbsam
map to guest = bad user
guest account = nobody ;nobody需为系统已存在用户
[public]
comment = public
path = /opt/public
browseable = yes
read only = yes
guest ok = yes
valid users = t_user,nobody ;只允许当前这二个用户访问,也可不限制用户
write list = t_user ;只允许该用户修改
allow hosts = 192.168.1.0/24