Skip to content

Instantly share code, notes, and snippets.

@pwrliang
Last active December 9, 2018 05:49
Show Gist options
  • Save pwrliang/c6e886fd159282c604d9ed17f9d2a40a to your computer and use it in GitHub Desktop.
Save pwrliang/c6e886fd159282c604d9ed17f9d2a40a to your computer and use it in GitHub Desktop.
Raspberrypi samba
[global]
netbios name = RASPBERRYPI
server string = The Raspberrypi File Center
workgroup = WORKGROUP
protocol = SMB3
smb encrypt = auto
# allow follow soft links
follow symlinks = yes
wide links = yes
unix extensions = no
# change ports
smb ports = 139 445 4455
# network optimizations
max connections = 65535
max open files = 65535
socket options = IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY
min receivefile size = 2048
use sendfile = true
aio read size = 2048
aio write size = 2048
write cache size = 1024000
read raw = yes
write raw = yes
getwd cache = yes
oplocks = yes
max xmit = 32768
dead time = 15
large readwrite = yes
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
max log size = 1000
# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
# syslog only = no
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
[Share]
path = /share
comment = Pi shared folder
browsable = yes
writeable = yes
only guest = no
create mask = 0755
directory mask = 0755
public = no
guest ok = no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment