How To Set Password Complexity In Redhat Linux 7?
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 password complexity in Redhat Linux 7 follow the steps below:
1. Log into your server as root.
2. Open the file /etc/pam.d/system–auth.
3. Look for the line that reads: password requisite pam_cracklib.so try_first_pass retry=3 minlen=8 difok=4.
4. To enable complex passwords on your system, modify this line to read: password requisite pam_cracklib.so try_first_pass retry=3 minlen=14 difok=4 ucredit=-1 lcredit=-1 dcredit=-1 ocredit=-1.
5. Save and close the file. 6. Run the “authconfig” command. 7. Reboot the server.
This will ensure that users must use passwords that are at least 14 characters long with at least one character from four different categories (lowercase letter, uppercase letter, number, and symbol).