[global]
workgroup = nobody
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = share
load printers = yes
cups options = raw
[share]
comment = share
path = /share
valid users = nobody
public = yes
writable = yes
printable = no
create mask = 0765
guest ok = yes
然后在 vim /etc/selinux/config
SELINUX=disable