SV-100421r1_rule
V-89771
SRG-OS-000279-GPOS-00109
VRAU-SL-000960
CAT II
10
Ensure the file exists and is owned by "root". If the files does not exist, use the following commands to create the file:
# touch /etc/profile.d/tmout.sh
# chown root:root /etc/profile.d/tmout.sh
# chmod 644 /etc/profile.d/tmout.sh
Edit the file /etc/profile.d/tmout.sh, and add the following lines:
TMOUT=900
readonly TMOUT
export TMOUT
mesg n 2>/dev/null
Check for the existence of the /etc/profile.d/tmout.sh file:
# ls -al /etc/profile.d/tmout.sh
Check for the presence of the "TMOUT" variable:
# grep TMOUT /etc/profile.d/tmout.sh
The value of "TMOUT" should be set to "900" seconds (15 minutes).
If the file does not exist, or the "TMOUT" variable is not set to "900", this is a finding.
V-89771
False
VRAU-SL-000960
Check for the existence of the /etc/profile.d/tmout.sh file:
# ls -al /etc/profile.d/tmout.sh
Check for the presence of the "TMOUT" variable:
# grep TMOUT /etc/profile.d/tmout.sh
The value of "TMOUT" should be set to "900" seconds (15 minutes).
If the file does not exist, or the "TMOUT" variable is not set to "900", this is a finding.
M
3459