# samba share files with linux and windows hosts ports: 137-139, 445 # configuration `/etc/samba/smb.conf` user `testparm` to test config Add `guest ok = yes` to give read-only public access ## read-only anonymous share, access to adminuser ```desktop [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 ``` ## private staff share ```desktop [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 ``` ## native transport encryption Supported by Windows 8, server 2012 and newer, smbclient 4.1... Add `server smb encrypt = desired` to global section. # discoverable avahi-daemon is required to make samba discoverable # client smbtree for a network overview