Samba has its own user management system. However, any user existing on the samba user list must also exist within /etc/passwd file. If your system user does not exist yet, hence cannot be located within /etc/passwd file, first create a new user using the useradd command before creating any new Samba user. Once your new system user eg. linuxconfig exits, use the smbpasswd command to create a new Samba user:

Samba users (sambashare group)

sudo smbpasswd -a $USER


sudo systemctl restart smbd

smbclient -L localhost

sudo systemctl status smbd

Leave a Reply

Your email address will not be published. Required fields are marked *