The Photon operating systems must enforce a 90-day maximum password lifetime restriction.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
|---|---|---|---|---|---|---|
| medium | V-258821 | SRG-OS-000076-GPOS-00044 | PHTN-40-000042 | SV-258821r1003636_rule | 2024-07-11 | 2 |
Description
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.
ℹ️ Check
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.
If "PASS_MAX_DAYS" is disabled or set to -1, this is a finding.
✔️ Fix
Navigate to and open:
/etc/login.defs
Add or update the following line:
PASS_MAX_DAYS 90