UBTU-22-271025 - Ubuntu 22.04 LTS must initiate a graphical session lock after 15 minutes of inactivity.

Information

A session lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not want to log out because of the temporary nature of the absence.

The session lock is implemented at the point where session activity can be determined.

Regardless of where the session lock is determined and implemented, once invoked, a session lock of Ubuntu 22.04 LTS must remain in place until the user reauthenticates. No other activity aside from reauthentication must unlock the system.

Solution

Configure Ubuntu 22.04 LTS to lock the current graphical user interface session after 15 minutes of inactivity.

Set the following settings to allow graphical user interface session lock to initiate after 15 minutes of inactivity:

$ gsettings set org.gnome.desktop.screensaver lock-enabled true

$ gsettings set org.gnome.desktop.screensaver lock-delay 0

$ gsettings set org.gnome.desktop.session idle-delay 900

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CAN_Ubuntu_22-04_LTS_V2R2_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-11a., CAT|II, CCI|CCI-000057, Rule-ID|SV-260538r958402_rule, STIG-ID|UBTU-22-271025, Vuln-ID|V-260538

Plugin: Unix

Control ID: cbe61dd5bafd5fce069abf33698ddf6dde1188d9139e069119f5291155c4ea15