2025-03-14 21:59:59 -06:00
|
|
|
# passwd
|
|
|
|
|
|
|
|
|
|
> Change a user's password.
|
|
|
|
|
> More information: <https://manned.org/passwd>.
|
|
|
|
|
|
|
|
|
|
- Change the password of the current user interactively:
|
|
|
|
|
|
|
|
|
|
`passwd`
|
|
|
|
|
|
|
|
|
|
- Change the password of a specific user:
|
|
|
|
|
|
|
|
|
|
`passwd {{username}}`
|
|
|
|
|
|
|
|
|
|
- Get the current status of the user:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`passwd {{[-S|--status]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Make the password of the account blank (it will set the named account passwordless):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`passwd {{[-d|--delete]}}`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Set password programmatically (ideal for install scripts):
|
|
|
|
|
|
|
|
|
|
`yes {{password}} | passwd`
|