share files with linux and windows hosts
ports: 137-139, 445
/etc/samba/smb.conf
user testparm to test config
Add guest ok = yes to give read-only public access
[global] netbios name = SCHOOL0 workgroup = WORKGROUP server string = public school share security = SHARE [edures_share] path = /mnt/media/edures/ comment = school resource share public = yes guest ok = yes read only = yes write list = adminuser printable = no
[global] ... security = user [staff_share] comment = private staff share path = /mnt/media/staff/ valid users = adminuser @staff force group = +staff public = no writable = yes create mask = 0644 directory mask = 2775 force create mode = 0664 force directory mode = 2775
Supported by Windows 8, server 2012 and newer, smbclient 4.1…
Add server smb encrypt = desired to global section.
avahi-daemon is required to make samba discoverable
smbtree for a network overview