Disable password authentication for a user.
Section: Accounts Authentication and Access
Lock user password
bash
bash
sudo passwd -l deployExplanation
Useful during account offboarding or incident response.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Accounts Authentication and Access