1.236 RHEL-10-600010

Information

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

GROUP ID: V-281167RULE ID: SV-281167r1166453

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://workbench.cisecurity.org/benchmarks/26403