Note : all commands are run as root

Simple setup

Server-side:

   1 apt-get install samba

Simple Share test

Server-side:

   1 mkdir -p /srv/samba/guestok
   2 echo Sample > /srv/samba/guestok/Sample.txt
   3 chown -R nobody:nogroup /srv/samba/guestok
   4 
   5 cat <<EOF | tee --append /etc/samba/smb.conf
   6 [guestok]
   7 comment = Welcome guests
   8 path = /srv/samba/guestok
   9 guest ok = yes
  10 read only = false
  11 EOF
  12 
  13 systemctl restart smbd.service

Client-side:

   1 apt-get install smbclient
   2 
   3 smbclient -U % //localhost/guestok

More tests

See https://wiki.samba.org/index.php/Developer_Documentation#Debugging_.2F_Testing