-x Parameter:This parameter is used to remove (delete) an account from the Samba database.
Example:smbpasswd -x username
-a Parameter:This parameter adds a new account to the Samba database. If the account already exists, it will update the account.
Example:smbpasswd -a username
Other Options:
-d Parameter:Disables (not deletes) an account.
-e Parameter:Enables a previously disabled account.
Password Synchronization:Thesmbpasswdcommand does not affect Windows domain controllers; it manages Samba-specific passwords.
References
smbpasswd Command Documentation
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit