2015-10-22 10:31:52 +03:00
|
|
|
# passwd
|
2014-02-22 15:38:10 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Passwd is a tool used to change a user's password.
|
2014-02-22 15:38:10 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Change the password of the current user:
|
2014-02-22 15:38:10 +04:00
|
|
|
|
2014-02-27 16:52:31 +04:00
|
|
|
`passwd {{new password}}`
|
2014-02-22 15:38:10 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Change the password of the specified user:
|
2014-02-22 15:38:10 +04:00
|
|
|
|
2014-02-27 16:52:31 +04:00
|
|
|
`passwd {{username}} {{new password}}`
|
|
|
|
|
2016-05-18 11:32:06 +03:00
|
|
|
- Get the current status of the user:
|
2014-02-22 16:24:27 +04:00
|
|
|
|
|
|
|
`passwd -S`
|
2014-02-22 15:38:10 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Make the password of the account blank (it will set the named account passwordless):
|
2014-02-22 15:38:10 +04:00
|
|
|
|
|
|
|
`passwd -d`
|