Linux Tutorial: Set the GRUB menu Password
OS: RHEL6.4-64
By default, after the operating system is started, press any key to go To the GRUB menu editing page.
To set a password for the GRUB menu, modify the/etc/grub. conf file (/boot/grub. conf)
Perform md5 encryption for the password to be used to obtain the encrypted string
[Root @ rhel64 ~] # Grub-md5-crypt
View configuration files
[Root @ rhel64 ~] # Cat/etc/grub. conf
Write the encrypted password string to the configuration file/etc/grub. conf.
Add encrypted information between hiddenmenu and title
Passwd -- md5 encrypted string
[Root @ rhel64 ~] # Cp/etc/grub. conf/etc/grub. conf. bak
[Root @ rhel64 ~] # Vi/etc/grub. conf
When you enter the CRUB menu of the operating system again after the restart, the e/a/c option is not displayed. Instead, you are prompted to press p to enter the password.
Press p to enter the GRUB Password
Press enter to enter and display the original menu
If you want to enter single-user mode, you can press the letter and add the Kernel Parameter 1 or single to crack the root user password.
How to fix grub in Ubuntu
How to run the ISO file directly from the hard disk using GRUB 2
Linux Startup Manager-GRUB
How to reinstall or fix Grub2 boot in Ubuntu12.04/12.10
Grub and mbr during Linux boot
Installation and Use of grub
Grub Bootstrap Configuration File Analysis
CentOS 6.4 grub and password
CentOS GRUB boot error cannot enter system solution
This article permanently updates the link address: