How To Set Password Expiry In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To set a password expiry in Linux, use the chage command.
For example, to set a password expiry of 60 days, run the following command:
$ chage -M 60 username
This will set the expiration date of the given user’s password to 60 days from the current date.