Set the grub Password in linux-general Linux technology-Linux technology and application information. For more information, see. [I = s] This post was last edited by tswanggl at, 2011-11-23
Command line input grub-md5-crypt (md5 encryption)
Password :*******
At this time, a string of characters such as $1 $1oh1O0 $ Th. rQaxwNr7LeTGFYOV/B0 will be generated.
Copy this string
Next:
# Vi/etc/grub. conf
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/sda2
# Initrd-version.img/initrd
# Boot =/dev/sda
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu
Title CentOS (2.6.18-194. el5)
Root (hd0, 0)
Kernel/vmlinuz-2.6.18-194.el5 ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.18-194.el5.img
Next: add
Password -- md5 $1 $1oh1O0 $ Th. rQaxwNr7LeTGFYOV/B0Save and exit (ESC: wq)
Reboot
Pressing ESC at startup is no longer the time when you press "E" to edit it.
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