pdbedit
Edit the Samba user database. tldr-pages
On Linux
Linux
Edit the Samba user database. For simple user add/remove/password, you can also use smbpasswd.
List all Samba users
sudo pdbedit --listIdentifyList all Samba users and their settings
sudo pdbedit --list --verboseIdentifyAdd an existing Unix user to Samba (will prompt for password)
sudo pdbedit --user username --createIdentifyRemove a Samba user
sudo pdbedit --user username --deleteIdentifyReset a Samba user's failed password counter
sudo pdbedit --user username --bad-password-count-resetIdentify