Skip to content

Instantly share code, notes, and snippets.

@DhashS
Created January 27, 2014 15:11
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 DhashS/8650083 to your computer and use it in GitHub Desktop.
Save DhashS/8650083 to your computer and use it in GitHub Desktop.
[global]
# begin mods
workgroup = [MY_WORKGROUP]
unix extensions = no
wide links = yes
security = ads
realm = [MY_DOMAIN}
domain master = no
preferred master = no
printcap name = cups
printing = cups
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
winbind use default domain = yes
winbind separator = +
winbind nested groups = yes
winbind refresh tickets = yes
winbind offline logon = yes
template shell = /bin/bash
# end mods
server string = %h server (Samba, Ubuntu)
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 level = 3
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
[printers]
comment = All Printers
path = /var/spool/cups
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
#more mods
[homes]
comment = Home dirs
valid users = %S
read only = no
browseable = no
#end more mods
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[Pictures]
comment = Pictures
path = /var/ghdisks/sdb1_WD500_LZ/Pictures
valid users = [MY_WORKGROUP]+me "@[MY_WORKGROUP]\Domain Users"
force group = "domain users"
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
dfree command = /usr/bin/greyhole-dfree
# vfs objects = greyhole <--- this breaks AD integration
[Plex]
comment = Plex
path = /var/ghdisks/sdb1_WD500_LZ/Plex
valid users = [MY_WORKGROUP]+me "@[MY_WORKGROUP]\Domain Users"
force group = "domain users"
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0664
directory mask = 0775
force directory mode = 0775
dfree command = /usr/bin/greyhole-dfree
# vfs objects = greyhole <--- this breaks AD integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment