How can I get grub password?
Answer
Trying to set up a password so that the Grub menu can’t be edited without authentication.
Answer
Trying to set up a password so that the Grub menu can’t be edited without authentication.
- grub2-mkpasswd-pbkdf2. Enter password: Confirm password:
- Copy password hash.
- Edit /etc/grub2/40_custom. set superuser=”root” password root.
- Save file.
- grub2-mkconfig -o /boot/grub2/grub.cfg.