Skip to content

Instantly share code, notes, and snippets.

@huzhifeng
Created April 9, 2017 15:22
Show Gist options
  • Save huzhifeng/2e3fc0a0fc66c911b0073aa497a3afd9 to your computer and use it in GitHub Desktop.
Save huzhifeng/2e3fc0a0fc66c911b0073aa497a3afd9 to your computer and use it in GitHub Desktop.
Samba sample
[global]
workgroup = WORKGROUP
security = user
map to guest = bad user
create mask = 0644
directory mask = 0755
[pub]
path = /public
browseable = yes
guest ok = yes
read only = no
[data]
path = /data
public = no
writeable = yes
write list = huzhifeng
valid users = huzhifeng
[huzhifeng]
path = /home/huzhifeng
public = no
writeable = yes
write list = huzhifeng
valid users = huzhifeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment