1. Home
  2. Security Hardening
  3. DISA STIG Ubuntu 16.04 LTS V2R3
  4. UBTU-16-010060 – Ubuntu operating system sessions must be automatically logged out after 15 minutes of inactivity – timeout

UBTU-16-010060 – Ubuntu operating system sessions must be automatically logged out after 15 minutes of inactivity – timeout

Details

An Ubuntu operating system needs to be able to identify when a user’s sessions has idled for longer than 15 minutes. The Ubuntu operating system must logout a users’ session after 15 minutes to prevent anyone from gaining access to the machine while the user is away.

Solution

Configure the Ubuntu operating system to initiate a session logout after a ’15’ minutes 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

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles