SLEM 5 must employ user passwords with a maximum lifetime of 60 days.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
---|---|---|---|---|---|---|
medium | V-261389 | SRG-OS-000076-GPOS-00044 | SLEM-05-611070 | SV-261389r996593_rule | 2024-06-04 | 1 |
Description |
---|
Any password, no matter how complex, can eventually be cracked. Therefore, passwords need to be changed periodically. If SLEM 5 does not limit the lifetime of passwords and force users to change their passwords, there is the risk that SLEM 5 passwords could be compromised. |
ℹ️ Check |
---|
Verify that SLEM 5 enforces a maximum user password age of 60 days or less with the following command: > sudo awk -F: '$5 > 60 || $5 == "" {print $1 ":" $5}' /etc/shadow If any results are returned that are not associated with a system account, this is a finding. |
✔️ Fix |
---|
Configure SLEM 5 to enforce a maximum password age of each <username> account to 60 days. The command in the check text will give a list of users that need to be updated to be in compliance: > sudo passwd -x 60 <username> |