Information
Single user mode (rescue mode) is used for recovery when the system detects an issue during boot or by manual selection from the bootloader.
Rationale:
Requiring authentication in single user mode (rescue mode) prevents an unauthorized user from rebooting the system into single user to gain root privileges without credentials.
Solution
Edit /usr/lib/systemd/system/rescue.service and add/modify the following line:
ExecStart=-/bin/sh -c '/usr/sbin/sulogin; echo 'Starting default target'; /usr/bin/systemctl --job-mode=fail --no-block default'
Edit /usr/lib/systemd/system/emergency.service and add/modify the following line:
ExecStart=-/bin/sh -c '/usr/sbin/sulogin; echo 'Starting default target'; /usr/bin/systemctl --job-mode=fail --no-block default'
Item Details
Category: CONFIGURATION MANAGEMENT, SYSTEM AND SERVICES ACQUISITION
References: 800-53|CM-1, 800-53|CM-2, 800-53|CM-6, 800-53|CM-7, 800-53|CM-7(1), 800-53|CM-9, 800-53|SA-3, 800-53|SA-8, 800-53|SA-10, CSCv7|5.1
Control ID: 819fdeb8c8ad379780603f9ce46fef461807575b8e3b5020d95af27551665439