1.5.3 Ensure authentication required for single user mode - emergency.service

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=-/usr/lib/systemd/systemd-sulogin-shell rescue
Edit /usr/lib/systemd/system/emergency.service and add/modify the following line:
ExecStart=-/usr/lib/systemd/systemd-sulogin-shell emergency

See Also

https://workbench.cisecurity.org/files/2485

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-7(9)

Plugin: Unix

Control ID: 008294697ff4554a4fa38df9a237b6eaca5499ef9d7f35f82ead694515bf5516