Skip to content

Instantly share code, notes, and snippets.

@BoManev
Created August 7, 2023 01:47
Show Gist options
  • Save BoManev/86726f5a89f5af243b616662dcbef99e to your computer and use it in GitHub Desktop.
Save BoManev/86726f5a89f5af243b616662dcbef99e to your computer and use it in GitHub Desktop.
Minimal unrestricted samba config for use in private LAN
// smb.conf
[global]
server string = File Server
workgroup = WORKGROUP
client min protocol = NT1
security = user
map to guest = Bad User
name resolve order = bcast host
include = /etc/samba/shares.conf
// shares.conf
[Public]
path = /mnt/usb/samba/public // external ssd
force user = smbuser
force group = smbgroup
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
writable = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment