Linux system reinforcement: add security protection layer to GRUB

Source: Internet
Author: User

There must also be a method to hold your feet. The 26th is approaching. I cannot guarantee that I can remember too many things in a short time and they are all right, assume it's a monkey, Dad, and B. You can't watch it, hahaha ~ (You are not responsible for any error. Sorry !)

Updating ......

GRUB Security Settings

Grub File Location: "/etc/grub. conf"

Check whether the password is set for grub and run "vim/etc/grub. conf"

The system does not add a password to grub by default. Next, add a protection layer to grub.

First, encrypt the MD5 of the password to be added. To facilitate the operation, run the following command in the vim Editor: "! /Sbin/grub-md5-crypt ", then enter the password:

Obtain MD5-encrypted characters:

First, add "lock" to the grub. conf file, and then "password" to add the string encrypted with MD5:

Run ": x" to save and exit the reboot system. You can find that grub has been locked:

Then press enter to enter the grub boot interface. In this case, you need to enter the password to enable grub to boot the system:

Enter "p" and password:

After entering the password, press enter to guide the system:

Log on to the system and you will be OK. It's time to go back to the bedroom and have a rest!

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.