Set a password policy in Red Hat Enterprise Linux 7 and 8

Solution Verified - Updated -

Issue

Requirement 1. Keep history of used passwords (the number of previous passwords which cannot be reused)

Requirement 2. Password size (Minimum acceptable size for the new password).

Requirement 3. Set limit to number of digits in password.

Requirement 4. Set limit to number of Upper Case characters in password.

Requirement 5. Set limit to number of Lower Case characters in password.

Requirement 6. Set limit to number of Other characters in password.

Requirement 7. Set minimum number of required classes in new password (digits, uppercase, lowercase, others).

Requirement 8. Set maximum number of allowed consecutive same characters in the new password.

Requirement 9. A maximum number of allowed consecutive characters of the same class in the new password.

Requirement 10. A maximum number of characters that is allowed to use in new passwords(compared to old password).

Requirement 11. Enforce root for password complexity.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • pam_pwquality.so
  • pam_pwhistory.so

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In