Edit the /etc/samba/smb.conf file and add something similar
[secured] path = /samba/secured valid users = @smbgrp guest ok = no writable = yes browsable = yes
Afterwards, save the conf file and restart samba
sudo service smbd restart
Reference: https://www.howtoforge.com/samba-server-ubuntu-14.04-lts