smbpasswd

Add/remove a Samba user or change its password.
Samba users must have an existing local Unix account.
More information.
smbpasswd
sudo smbpasswd -a {username}
sudo smbpasswd {username}
sudo smbpasswd -x {username}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY