3.3 Set Boot Loader Password - password_pbkdf2

Information

Setting the boot loader password will require that anyone rebooting the system must enter a password before being able to set command line boot parameters 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-md5-crypt- # grub-mkpasswd-pbkdf2Enter password- <password> Reenter password- <password> Your PBKDF2 is <encrypted-password> Add the following into /etc/grub.d/00_header or a custom /etc/grub.d configuration file- cat <<EOFset superusers='<user-list>'password_pbkdf2 <user> <encrypted-password> EOF Unless the --unrestricted option is added to CLASS in /etc/grub.d/10_linux a password will be required to boot in addition to editing boot parameters- CLASS='--class gnu-linux --class gnu --class os --unrestricted' Run the following to update the grub configuration- # update-grub

See Also

https://workbench.cisecurity.org/files/85

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, CSCv7|5.1

Plugin: Unix

Control ID: 6f42ec1456ed3c3681b162fad166731c83184b31c6a0c9348f60ec3ced660c9d