The grub password is divided into: full zone password (you need to enter the grub global password to modify the grub label after setting) and menu password (you need to enter the grub menu password to boot the system after setting)
If you forget the grub global password, you can enter Rescue mode (rescue, similar to winPE), reset grub password
In addition to plain text, grub password can also use encrypted cipher text.
grub encryption tools include: grub-md5-crypt and grub-crypt
grub-md5-crypt: MD5 encrypted password output
grub-crypt : If possible, select the encryption method --md5, --sha-256, --sha-512 (default)
Edit the file /boot/grub/grub.conf
Settings The GRUB global password format is as follows:
hiddemenu
password=plain text password or password --md5 MD5 cipher text or password --encrypted sha cipher text
Set GRUB The menu password format is as follows:
title
password=plain text password or password --md5 MD5 cipher text or password --encrypted sha cipher text
The above is the detailed content of How to understand grub password. For more information, please follow other related articles on the PHP Chinese website!