Sunday, October 18, 2015

Chose user used by samba

Problem:
I wanted to have a samba share with guest access, and the user used by samba to write on the server to be a specific user account, so that I could also manipulate the files placed in the share.

By default the user used was nobody, and the I was having problems using the local linux account in the server to manipulated files, as it did not have the correct access rights.
The option that solved my problems was:

[Share]
path = 
writeable = Yes
force user =  # this was the line that fixed the nobody user
guest only = Yes 
guest ok = yes
browseable = Yes
public = yes
hide dot files = no