OL 8 must ensure session control is automatically started at shell initialization.
An XCCDF Rule
Description
Tmux is a terminal multiplexer that enables a number of terminals to be created, accessed, and controlled from a single screen. Satisfies: SRG-OS-000028-GPOS-00009, SRG-OS-000030-GPOS-00011
- ID
- SV-248676r1015043_rule
- Version
- OL08-00-020041
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
Configure the operating system to initialize the tmux terminal multiplexer as each shell is called by adding the following lines to a custom.sh shell script in the /etc/profile.d/ directory:
if [ "$PS1" ]; then
parent=$(ps -o ppid= -p $$)
name=$(ps -o comm= -p $parent)
case "$name" in (sshd|login) tmux ;; esac