SV-219303r610963_rule
V-219303
SRG-OS-000029-GPOS-00010
UBTU-18-010402
CAT II
10
Configure the Ubuntu operating system to initiate a session logout after a 15-minute period of inactivity.
Create a file to contain the system-wide session auto logout script (if it does not already exist) with the following command:
# sudo touch /etc/profile.d/autologout.sh
Add the following lines to the "/etc/profile.d/autologout.sh" script:
TMOUT=900
readonly TMOUT
export TMOUT
Verify the Ubuntu operating system initiates a session logout after a 15-minute period of inactivity.
Check that the proper auto logout script exists with the following command:
# cat /etc/profile.d/autologout.sh
TMOUT=900
readonly TMOUT
export TMOUT
If the file "/etc/profile.d/autologout.sh" does not exist with the contents shown above, the value of "TMOUT" is greater than 900, or the timeout values are commented out, this is a finding.
V-219303
False
UBTU-18-010402
Verify the Ubuntu operating system initiates a session logout after a 15-minute period of inactivity.
Check that the proper auto logout script exists with the following command:
# cat /etc/profile.d/autologout.sh
TMOUT=900
readonly TMOUT
export TMOUT
If the file "/etc/profile.d/autologout.sh" does not exist with the contents shown above, the value of "TMOUT" is greater than 900, or the timeout values are commented out, this is a finding.
M
4055