How To Set Password Policy 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.
1. Edit the /etc/login.defs file.
2. Add or modify the PASS_MAX_DAYS, PASS_MIN_DAYS, PASS_WARN_AGE, PASS_MIN_LEN, PASS_MAX_LEN and PASS_ALWAYS_WARN parameters.
3. Make sure that the password hashing algorithm is set to SHA-512 or higher.
4. Set a minimum number of characters for passwords.
5. Make sure that users are not allowed to re-use previously used passwords.
6. Require users to periodically change their passwords.
7. Set a maximum password age.
8. Use password complexity rules to enforce the use of complex passwords.