In the previous recipe, we installed the Samba server and created a public share accessible to everyone. In this recipe, we will learn how to add authentication to the Samba server and password protect shared directories.
You will need access to a root account or an account with
Make sure that the Samba server is installed and running.
Follow these steps to add users to the Samba server:
smbuserto your desired username:
$ sudo useradd -d /home/smbuser -s /sbin/nologin smbuser