How to share home folders with read only permission (Authentication=Yes)
* Read #General Notes
* Read #How to install Samba Server for files/folders sharing service
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
* Find this line
...
; security = user
...
* Replace with the following lines
security = user
username map = /etc/samba/smbusers
* Save the edited file
* Read #How to add/edit/delete network users
sudo testparm
sudo /etc/init.d/samba restart