SV-270682r1066535_rule
V-270682
SRG-OS-000002-GPOS-00002
UBTU-24-200250
CAT II
10
Configure Ubuntu 24.04 LTS to expire temporary accounts after 72 hours with the following command:
$ sudo chage -E $(date -d +3days +%Y-%m-%d) <temporary_account_name>
Verify temporary accounts have been provisioned with an expiration date of 72 hours with the following command:
$ sudo chage -l <temporary_account_name> | grep -i "account expires"
Verify each of these accounts has an expiration date set within 72 hours.
If any temporary accounts have no expiration date set or do not expire within 72 hours, this is a finding.
V-270682
False
UBTU-24-200250
Verify temporary accounts have been provisioned with an expiration date of 72 hours with the following command:
$ sudo chage -l <temporary_account_name> | grep -i "account expires"
Verify each of these accounts has an expiration date set within 72 hours.
If any temporary accounts have no expiration date set or do not expire within 72 hours, this is a finding.
M
5673