Skip to content

Instantly share code, notes, and snippets.

@fidelix
Created April 13, 2013 12:33
Show Gist options
  • Save fidelix/5378213 to your computer and use it in GitHub Desktop.
Save fidelix/5378213 to your computer and use it in GitHub Desktop.
/etc/samba/smb.conf - Don't forget to change your username
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n$
pam password change = yes
[www]
comment = WWW
path = /www
#valid users = @users
create mask = 777
directory mask = 777
writable = yes
read only = no
browseable = yes
guest ok = yes
guest account = username
force user = username
public = yes
[root]
comment = ROOT
path = /
#valid users = @users
create mask = 777
directory mask = 777
writable = yes
read only = no
browseable = yes
guest ok = yes
guest account = username
force user = username
public = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment