smbpasswd -d alice

Category: Administration

smbpasswd -d alice

Disable a Samba user account

Disables Samba authentication for alice without deleting her entry from the database, so the account can be re-enabled later with smbpasswd -e alice. Existing sessions may stay until they disconnect. This is the SMB-side counterpart to locking a system account.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.