UBTU-22-411030 - Ubuntu 22.04 LTS must be able to enforce a 180-day maximum password lifetime restriction.

Information

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

Solution

Configure Ubuntu 22.04 LTS to enforce a 180-day maximum password lifetime.

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

PASS_MAX_DAYS 180

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_22-04_LTS_V2R10_STIG.zip