RHEL-09-411010 - RHEL 9 user account passwords for new users or password changes must have a 60-day maximum password lifetime restriction in /etc/login.defs.

Information

Any password, no matter how complex, can eventually be cracked; therefore, passwords need to be changed periodically. If the operating system does not limit the lifetime of passwords and force users to change their passwords, there is the risk that the operating system passwords could be compromised.

Setting the password maximum age ensures users are required to periodically change their passwords. Requiring shorter password lifetimes increases the risk of users writing down the password in a convenient location subject to physical compromise.

Solution

Configure RHEL 9 to enforce a 60-day maximum password lifetime.

Add or modify the following line in the '/etc/login.defs' file:

PASS_MAX_DAYS 60

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R1_STIG.zip

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1)(a), CAT|II, CCI|CCI-004066, Rule-ID|SV-258041r997076_rule, STIG-ID|RHEL-09-411010, Vuln-ID|V-258041

Plugin: Unix

Control ID: c6cd7f36d65078ee3e8e6fbc1a1448fff8413f8154530bb46a462f3e5d6e3dc7