SV-271843r1094969_rule
V-271843
SRG-OS-000123-GPOS-00064
OL09-00-003030
CAT II
10
Configure the operating system to expire temporary accounts after 72 hours with the following command:
$ sudo chage -E $(date -d +3days +%Y-%m-%d) <temporary_account_name>
Verify that OL 9 configures temporary accounts to be provisioned with an expiration date of 72 hours.
For every existing temporary account, run the following command to obtain its account expiration information:
$ 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-271843
False
OL09-00-003030
Verify that OL 9 configures temporary accounts to be provisioned with an expiration date of 72 hours.
For every existing temporary account, run the following command to obtain its account expiration information:
$ 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
5680