passwd [options] [user]
Create or change a password associated with aÂ user name. Only the owner or a privileged user may change a password. Owners need not specify theiruser name. Users can change their own passwords. For any other operation, you must be root.
Delete the password for the user’s account.
Force the operation. OverridesÂ -u.
Display a help message describing the options. See alsoÂ –usage.
-i days,Â –inactive=days
Set the number of days after a password has expired before the account is disabled.
Keep passwords (authentication tokens) that have not expired.
Lock the user’s account.
-n days,Â –minimum=days
Set the minimum number of days that the password is valid.
Print the status of the user’s password.
Read new passwords from standard input.
Unlock the user’s account
Display a brief usage message. See alsoÂ –help.
-w days,Â –warning=days
Set the number of days of warning users will get before their password expires.
-x days,Â –maximum=days
Set the maximum number of days that the password is valid