Skip to content

Install the screen Package

An XCCDF Rule

Description

To enable console screen locking, install the screen package. The screen package can be installed with the following command:

$ sudo dnf install screen
Instruct users to begin new terminal sessions with the following command:
$ screen
The console can now be locked with the following key combination:
ctrl+a x

Rationale

A session time-out 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 logout because of the temporary nature of the absence. Rather than relying on the user to manually lock their operation system session prior to vacating the vicinity, operating systems need to be able to identify when a user's session has idled and take action to initiate the session lock.

The screen package allows for a session lock to be implemented and configured.

ID
xccdf_org.ssgproject.content_rule_package_screen_installed
Severity
Medium
References
Updated



Remediation - Anaconda Pre-Install Instructions


package --add=screen

Remediation - OS Build Blueprint


[[packages]]
name = "screen"
version = "*"

Remediation - Ansible

- name: Ensure screen is installed
  package:
    name: screen
    state: present
  when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"]
  tags:

Remediation - Puppet

include install_screen

class install_screen {
  package { 'screen':
    ensure => 'installed',
  }

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then

if ! rpm -q --quiet "screen" ; then
    dnf install -y "screen"
fi