Skip to content

Instantly share code, notes, and snippets.

@dinigo
Created December 14, 2014 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinigo/8db7776d9f5c56265778 to your computer and use it in GitHub Desktop.
Save dinigo/8db7776d9f5c56265778 to your computer and use it in GitHub Desktop.
Samba configuration at /etc/samba/
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[home]
comment = Home Directories
valid users = @samba
path = /home/%U
read only = No
create mask = 0700
directory mask = 0700
browseable = Yes
[Sharedfolder]
comment = Comment about this folder
path = /path/to/folder
valid users = @samba
read only = No
create mask = 0765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment