Skip to content

Instantly share code, notes, and snippets.

@dbsanfte
Created June 5, 2017 16:13
Show Gist options
  • Select an option

  • Save dbsanfte/30770e53915aceed11eeb9f964ba2655 to your computer and use it in GitHub Desktop.

Select an option

Save dbsanfte/30770e53915aceed11eeb9f964ba2655 to your computer and use it in GitHub Desktop.
smb.conf with performance tweaks
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
strict allocate = Yes
allocation roundup size = 4096
read raw = Yes
write raw = Yes
strict locking = No
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
min receivefile size = 16384
use sendfile = Yes
aio read size = 16384
aio write size = 16384
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = root
create mask = 0664
directory mask = 0775
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment