Skip to content

Instantly share code, notes, and snippets.

@kennydiff
Forked from dln/smb.conf
Created September 7, 2023 06:52
Show Gist options
  • Save kennydiff/18541eec46abca74843dee0b414eb59f to your computer and use it in GitHub Desktop.
Save kennydiff/18541eec46abca74843dee0b414eb59f to your computer and use it in GitHub Desktop.
Minimal samba config with some perf tunings for throughput
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
max log size = 1000
server role = standalone server
security = user
map to guest = Bad Password
server multi channel support = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = no
disable netbios = yes
dns proxy = no
deadtime = 1800
smb encrypt = off
socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE
min receivefile size = 16384
use sendfile = yes
write cache size = 262144
strict locking = no
aio read size = 16384
aio write size = 16384
use sendfile = yes
aio read size = 1
aio write size = 1
protocol = SMB3
min protocol = smb2
max protocol = smb3
[Data]
path = /data
writeable = yes
browsable = yes
guest ok = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment