Rule ID
SV-258821r933524_rule
Version
V1R1
CCIs
CCI-000199
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.
At the command line, run the following command to verify a 90-day maximum password lifetime restriction: # grep '^PASS_MAX_DAYS' /etc/login.defs If "PASS_MAX_DAYS" is not set to <= 90, is missing or commented out, this is a finding.
Navigate to and open: /etc/login.defs Add or update the following line: PASS_MAX_DAYS 90