How to use MD5 to encrypt GRUB passwords

Source: Internet
Author: User

Comments: The procedure is as follows: Enter grub in the command line to enter the GRUB interface, enter md5crypt (or password -- md5), and then enter your password (Be careful when entering the password, because it can only be entered once), generate an md5 encrypted string and copy it. Enable/boot/grub. conf: add the lock and password -- md5 clauses after the title clause. The result is as follows: Enter grub in the command line to enter the GRUB interface, and enter md5crypt (or password -- md5 ), enter your password (note that you must be careful when entering the password only once), generate an md5 encryption string, and copy it. Open/boot/grub. conf and add lock and password -- md5 clause after the title clause. The result is as follows: title CentOS (2.6.9-42.0.3.EL)
Lock
Password -- md5 $1 $ G7A00 $ S9iQ9fN9IME2gpECHS7CV1
Root (hd0, 9)
Kernel/vmlinuz-2.6.9-42.0.3.EL ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.9-42.0.3.EL.img

After restarting, you must enter the correct password to enter CentOS (2.6.9-42.0.3.EL.


Related Article

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.