Skip to content

Configure the tmux Lock Command

An XCCDF Rule

Description

To enable console screen locking in tmux terminal multiplexer, the vlock command must be configured to be used as a locking mechanism. Add the following line to /etc/tmux.conf:

set -g lock-command vlock
. The console can now be locked with the following key combination:
ctrl+b :lock-session

Rationale

The tmux package allows for a session lock to be implemented and configured. However, the session lock is implemented by an external command. The tmux default configuration does not contain an effective session lock.

ID
xccdf_org.ssgproject.content_rule_configure_tmux_lock_command
Severity
Medium
References
Updated