"Linux" Grub encryption

Source: Internet
Author: User

1. Calculate GRUB's MD5 encryption password:

#grub-md5-crypt

Password:
Retype Password:
After you enter the password for two times to confirm, you will calculate the MD5 encryption value of the password you entered, such as: $1$pfddv1$3x/xnizeysusf7fl9buuj/
The value after which the password is copied for MD5 encryption.

2. Configure Grub

[[email protected] ~]# cat/boot/grub/grub.conf # grub.conf generated by anaconda##  Grub after making changes to this file# notice:you has a/boot partition. This means that# all kernel and initrd paths is relative to/boot/, eg.# root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2# initrd/initrd-version.img#boot=/dev/sdadefault=0timeout=5Password--md5 $1$pfddv1$3x/xnizeysusf7fl9buuj/Splashimage= (hd0,0)/grub/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux Server (2.6.18-308.el5) root (hd0,0) Kernel/vmlinuz-2.6.18-308.el5 ro root=label=/rhgb quiet initrd/initrd-2.6.18-308.el5.img 3. Effective after reboot

"Linux" Grub encryption

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.