passwd do?change a user's password (and password-aging settings).
▸ Explain your own passwd command →$ passwd
$ passwd alice
$ passwd -S bob
$ passwd -l svc
| -l | lock the account's password (prefix it with !) |
| -u | unlock a locked password |
| -d | delete the password, leaving the account passwordless |
| -e | expire the password now, forcing a change at next login |
| -S | show password status (locked/usable, last change) |
| -a | with -S, report status for all accounts |
| -n | minimum days between password changes |
| -x | maximum days a password stays valid |
| -w | days of warning before a password expires |
| -i | days after expiry until the account is disabled |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.