Linux Tutorial: Set the GRUB menu Password

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.