解決samba只讀,但無修改許可權的配置

ljflemon發表於2020-11-05

[Share1]
comment = shared by telephony team
valid user = meizu
force group = meizu
force user = meizu
create mask = 0755
create mode = 0664
directory mode = 0775
browseable = yes
path = /home/meizu
public = yes
available = yes
writable = yes

[Share2]
comment = shared by telephony team
valid user = meizu
force group = meizu
force user = meizu
create mask = 0755
create mode = 0664
directory mode = 0775
browseable = yes
path = /share/ext
public = yes
available = yes
writable = yes
  1. 一個share對應的是一個訪問目錄,如果需要訪問多個目錄就定義多個share即可
  2. 解決只讀,但是沒有修改許可權的問題,一定要加valid user,force group,force user三個欄位,這樣可以確定使用samba的是什麼使用者,而不是一個臨時使用者

相關文章