smbpasswd Command Examples

Add/remove a Samba user or change its password. Samba users must have an existing local Unix account. More information: https://manned.org/smbpasswd.8.

smbpasswd

sudo smbpasswd -a {{username}}

sudo smbpasswd {{username}}

sudo smbpasswd -x {{username}}