The passwd command
Yaser Rahmati | یاسر رحمتی
In Linux, passwd
command changes the password of user accounts. A normal user may only change the password for their own account, but a superuser may change the password for any account. passwd also changes the account or associated password validity period.
Example
The passwd utility is used to update user's authentication token(s).
Display account status information.
Lock the password of the named account.
Delete a user's password.
Immediately expire an account's password.
Indicate password change should be performed only for expired authentication tokens (passwords).
This option is used to disable an account after the password has been expired for a number of days.
The syntax of the passwd command is :
Last updated