3. Secured samba server
For this I will create a group smbgrp & user srijan to access the samba server with proper authentication
addgroup smbgrp
adduser srijan -G smbgrp
smbpasswd -a srijan
root@server1:~# smbpasswd -a srijan
New SMB password:
Retype new SMB password:
Added user srijan.
root@server1:~#
Now create the folder viz secured in the /samba folder & give permissions like this
mkdir -p /samba/secured
cd /samba
chmod -R 0770 secured/