If you are Samba head waiter user, you can make user that have to drop a line to to use it. It has very easy command. there are 2 methods to creating a user. First we be imaginary to run the smbpasswd program to formulate a samba password for the user.

sudo smbpasswd -a <username>

Then, we will add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

Include in the following line; add username with the one you would like to offer entrance to. The format is <ubuntuusername> = “<samba username>”. You can use a new samba user name to map to an ubuntu account, but that’s not really requisite right now.

<username> = “<username>”

Now you can create samba shares and give access to the users that you listed here.