TMAegisBeta
More rules for linux

Linux distributions

TMA-SLES11-1.4.3

Ensure authentication required for single user mode

MediumLevel 1Automatedlinux

Description

Single user mode is used for recovery when the system detects an issue during boot or by manual selection from the bootloader.

How it is checked

Audit method: Shell command

shell
alt0() { command -v grep >/dev/null 2>&1 || { echo "step1: grep not installed"; return 1; }; o=$(bash -c 'grep "~~:S:respawn" /etc/inittab' 2>&1); printf '%s\n' "$o" | tr -s ' \t' '  ' | sed 's/^ //;s/ $//' | grep -Fxq -- '~~:S:respawn:/sbin/sulogin' || { echo step1: missing '~~:S:respawn:/sbin/sulogin'; return 1; }; }; if alt0; then echo compliant; fi
Expected output
compliant

How it is fixed

Fix method: Guidance or infrastructure patch

Edit /etc/inittab and set ~~:S:respawn to ' /sbin/sulogin ': ~~:S:respawn:/sbin/sulogin 1.5 Additional Process Hardening

Properties

Operating systems
sles-11
Tags
cis-convertedlinux
Reference
CIS SUSE Linux Enterprise 11 Benchmark v2.1.1 - 1.4.3

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target linux