1. Home
  2. Security Hardening
  3. CIS SUSE Linux Enterprise 15 Server L1 V1.1.1
  4. Ensure authentication required for single user mode – rescue.service

Ensure authentication required for single user mode – rescue.service

Details

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

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management, Identification and Authentication.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles