RHEL-08-010150 - RHEL 8 operating systems booted with a BIOS must require authentication upon booting into single-user and maintenance modes. - superusers

Information

If the system does not require valid authentication before it boots into single-user or maintenance mode, anyone who invokes single-user or maintenance mode is granted privileged access to all files on the system. GRUB 2 is the default boot loader for RHEL 8 and is designed to require a password to boot into single-user mode or make modifications to the boot menu.

Solution

Configure the system to require a grub bootloader password for the grub superuser account.

Generate an encrypted grub2 password for the grub superuser account with the following command:

$ sudo grub2-setpassword
Enter password:
Confirm password:

Edit the /boot/grub2/grub.cfg file and add or modify the following lines in the '### BEGIN /etc/grub.d/01_users ###' section:

set superusers='[someuniquestringhere]'
export superusers

See Also

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

Item Details

References: CAT|I, CCI|CCI-000213, Rule-ID|SV-230235r599732_rule, STIG-ID|RHEL-08-010150, Vuln-ID|V-230235

Plugin: Unix

Control ID: e1c4b6c912f9b3065d614864df073f7579cfd0f39c4dcd7c4588815d792f6321