So I am trying to set password for grub to prevent entry of single-user mode who might have direct physical access to my machine. I am working on RHEL7, and the redhat portals show that this feature was added in RHEL7.2
I ran following command:
grub2-mkpasswd-pdkbf2
which prompted me to enter the password. After I entered the password I got hash code which I copied.
Now I need to know in which configuration file do I need to paste that hash code? Should it be /etc/grub.d/40_customs
?
But what entries should I make in this file?