ALMA-09-006400 - AlmaLinux OS 9 must require a unique superuser's name upon booting into single-user and maintenance modes.

Warning! Audit Deprecated

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

View Next Audit Version

Information

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

Solution

Configure AlmaLinux OS 9 to have a unique username for the grub superuser account using the following commands:

$ sed -ri 's/root/superman/' /etc/grub.d/01_users

$ grub2-mkconfig -o /boot/grub2/grub.cfg

See Also

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