Skip to content

Instantly share code, notes, and snippets.

@nerdegem
Created May 29, 2022 21:29
Show Gist options
  • Select an option

  • Save nerdegem/321fd1a0ed5329fcd8157438b43a6fe8 to your computer and use it in GitHub Desktop.

Select an option

Save nerdegem/321fd1a0ed5329fcd8157438b43a6fe8 to your computer and use it in GitHub Desktop.
Working Samba Config
[global]
workgroup = SAMBA
security = user
server string = %h server (Samba, Ubuntu)
protocol = SMB3
server min protocol = SMB2_02
interfaces = 127.0.0.0/8 eth0
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
read raw = Yes
write raw = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=524288 SO_SNDBUF=524288
min receivefile size = 65536
use sendfile = true
aio read size = 65536
aio write size = 65536
[Share1]
comment = Share1
path = /mnt/storage/shareone
valid users = @smbgrp
browsable = yes
read only = no
force user = root
force group = root
guest ok = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment