Samba (File Server) - Delete user from Samba backend using the smbpasswd command

by
Jeremy Canfield |
Updated: January 16 2023
| Samba (File Server) articles
The pdbedit --list command can be used to list the user that have been added to the SMB database. The output should be identical to the smb.passwd file.
~]# pdbedit --list
john.doe:1001
jane.doe:1002
The smbpasswd command with the -x option can be used to delete a user from the SMB database.
~]$ sudo smbpasswd -x john.doe
Deleted user john.doe.
Did you find this article helpful?
If so, consider buying me a coffee over at