security=share在新版中已經被廢棄了
把
security = share
改成
security = user
map to guest = Bad User
就能夠了
[global]
workgroup = SAMBA
security = user
map to guest = Bad User
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
guest account = dwglit
systemctl status smb enabledio