From 19aeea371c0fb21404deaa252efd8c6789a28079 Mon Sep 17 00:00:00 2001 From: Henry Finucane Date: Wed, 14 Jun 2023 13:06:51 -0700 Subject: [PATCH] Fix grub2 remediation instructions The string it should look for is "superuser*s*=", not "superuser=". All the other content looks for the correct string, other than the instructions provided. --- .../bootloader-grub2/non-uefi/grub2_admin_username/rule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux_os/guide/system/bootloader-grub2/non-uefi/grub2_admin_username/rule.yml b/linux_os/guide/system/bootloader-grub2/non-uefi/grub2_admin_username/rule.yml index 4def1608b48..05e2deae07b 100644 --- a/linux_os/guide/system/bootloader-grub2/non-uefi/grub2_admin_username/rule.yml +++ b/linux_os/guide/system/bootloader-grub2/non-uefi/grub2_admin_username/rule.yml @@ -15,7 +15,7 @@ description: |- admin, or administrator for the grub2 superuser account.

Change the superuser to a different username (The default is 'root'). -
$ sed -i 's/\(set superuser=\).*/\1"<unique user ID>"/g' /etc/grub.d/01_users
+
$ sed -i 's/\(set superusers=\).*/\1"<unique user ID>"/g' /etc/grub.d/01_users


Once the superuser account has been added, update the