ALMA-09-006510 - AlmaLinux OS 9 must require authentication to access single-user mode.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

This requirement prevents attackers with physical access from easily bypassing security on the machine and gaining root access.

Such accesses are further prevented by configuring the bootloader password.

Solution

Configure AlmaLinux OS 9 to require authentication for single-user mode.

Add or modify the following line in the "/usr/lib/systemd/system/rescue.service" file:

ExecStart=-/usr/lib/systemd/systemd-sulogin-shell rescue

"sudo systemctl edit rescue.service" can also be used to create a "/etc/systemd/system/rescue.service.d/override.conf" file.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CL_AlmaLinux_OS_9_V1R1_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000213, Rule-ID|SV-269139r1050021_rule, STIG-ID|ALMA-09-006510, Vuln-ID|V-269139

Plugin: Unix

Control ID: 63e39ff799d4e67e891e893b4b2ed6e41de5af46b20a4983ef9a70f7b5c56888