Samba Add a User

www.l‮‬autturi.com
Samba Add a User

To add a user to Samba, you need to first create a user on the Linux system that Samba is installed on. This can be done using the adduser command. For example, to add a user named sambausername, you would run:

sudo adduser sambausername

After creating the user on the Linux system, you can then add the user to the Samba user database using the smbpasswd command. This command allows you to set a password for the user that will be used to authenticate the user when they access Samba shares. For example, to add the user sambausername to the Samba user database and set their password, you would run:

sudo smbpasswd -a sambausername

You will be prompted to enter and confirm the password for the user. Once the password is set, the user will be added to the Samba user database and will be able to access Samba shares using their Linux username and password.

Created Time:2017-10-16 14:38:54  Author:lautturi