There’s a very simple command structure on how to do so.

I’m assuming that you’ve alreadyinstalled Samba Serverat this point.

There are two steps to creating a user.

First we’ll initiate the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a

Next, we’ll add that username to the smbusers file.

The format is = “”.