Rule ID
SV-254219r982200_rule
Version
V1R2
CCIs
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.
Confirm Nutanix AOS is configured to enforce a 60-day maximum password lifetime.
$ sudo grep -i pass_max_days /etc/login.defs
PASS_MAX_DAYS 60
If the "PASS_MAX_DAYS" parameter value is not "60" or less, or is commented out, this is a finding.
$ sudo awk -F: '$5 > 60 {print $1 " " $5}' /etc/shadow
If any results are returned that are not associated with a system account, this is a finding.Configure the password maximum age by running the following command: $ sudo salt-call state.sls security/CVM/pamCVM