1.4.2 Ensure bootloader password is set - set superusers

Information

Requiring a boot password upon execution of the boot loader will prevent an unauthorized user from entering boot parameters or changing the boot partition. This prevents users from weakening security (e.g. turning off SELinux at boot time).

Solution

Create an encrypted password with grub-mkpasswd-pbkdf2: # grub2-mkpasswd-pbkdf2Enter password: <password> Reenter password: <password> Your PBKDF2 is <encrypted-password> Add the following into /etc/grub.d/01_users or a custom /etc/grub.d configuration file: cat <<EOFset superusers='<username>'password_pbkdf2 <username> <encrypted-password> EOF Run the following command to update the grub2 configuration: # grub2-mkconfig > /boot/grub2/grub.cfg

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-7, CSCv6|5.1

Plugin: Unix

Control ID: d97618da3a814b256c047f71dc6378ef085fed6f33fe3f2ac62c596a205271c4