centos 7.0 samba 配置檔案
public 目錄只讀,
upload 可以上傳 可以刪除 如果不允許刪除 加mask屬性即可。
[global] workgroup = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw map to guest = bad user #guest account=guest[public] path = /home/user/public browseable = yes read only = yes guest ok = yes[admin] path=/home/user valid users = ks write list = ks read only = no guest ok = no writable = yes[upload] path=/home/user/upload read only = no guest ok = yes writeable = yes