RHEL-10-600010 - RHEL 10 must require a unique superusers name upon booting into single-user and maintenance modes.

Information

Having a nondefault grub superuser username makes password-guessing attacks less effective.

Solution

Configure RHEL 10 to have a unique username for the grub superuser account.

Edit the "/etc/grub.d/01_users" file and add or modify the following lines with a nondefault username for the superuser account:

set superusers="<accountname>"
export superusers

Once the superuser account has been added, update the "grub.cfg" file by regenerating the GRUB configuration with the following command:

$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg --update-bls-cmdline

Reboot the system:

$ sudo reboot

See Also

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