GRUB Password protection

Source: Internet
Author: User
Tags password protection

GRUB Password protection mainly prevents malicious modification of the ROOT password of your host.

1. Generate a password
[Root @ localhost ~] # Grub-md5-crypt
Password:
Retype password:
$9U6aAg751 $6l/ob1 $8KK/bMZFhK6NQw1
[Root @ localhost ~] #

2. Modify the Grub. conf file

[Root @ localhost ~] # Vi/etc/grub. conf


Default = 0
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu

Password -- md5 $9U6aAg751 $6l/ob1 $8KK/bMZFhK6NQw1
Title CentOS (2.6.32-431. el6.x86 _ 64) -- add password information before this line
Root (hd0, 0)
Kernel/vmlinuz-2.6.32-431.el6.x86_64 ro root =/dev/mapper/VolGroup-lv_root kernel LANG = en_US.UTF-8 rd_NO_MD kernel = VolGroup/lv_swap SYSFONT = latarcyrheb-sun16 crashkernel = auto kernel = VolGroup/lv_root KEYBOARDTYPE = pc KEYTABLE = us rd_NO_DM rhgb quiet
...
....

3. Save and exit

4. View Reboot results

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.