Skip to content

Instantly share code, notes, and snippets.

@kparms
Created October 28, 2016 15:57
Show Gist options
  • Save kparms/e5d1f1f7d087dad28967a5bb8468eb02 to your computer and use it in GitHub Desktop.
Save kparms/e5d1f1f7d087dad28967a5bb8468eb02 to your computer and use it in GitHub Desktop.
adduser --system shareuser
chown -R shareuser /path/to/share
Then add force user and permission mask settings in smb.conf:
[myshare]
path = /path/to/share
writeable = yes
browseable = yes
public = yes
create mask = 0644
directory mask = 0755
force user = shareuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment