Linux Protection boot password (2)

Source: Internet
Author: User

As long as you are familiar with Linux, know how to change the password, but it is not safe, because everyone can modify, how to protect them? There is a way to set the password at the time, set a password to protect it, not it?

One: First, go to the Super User directory

Use command: vi/etc/grub.conf

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/06/6E/wKiom1m3-7KgH6akAAAcUBl84oc177.png-wh_500x0-wm_ 3-wmp_4-s_1038745073.png "title=" 1.png "alt=" Wkiom1m3-7kgh6akaaacubl84oc177.png-wh_50 "/>

After entering this state, press the I key to enter the editing state, under the configuration file under the title CentOS 6 input command password=123456, note that must not be configured elsewhere, or there will be an error. After entering, press ESC, enter: wq!, press ENTER, then restart.

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/06/6E/wKiom1m3-8PzkVWAAABWgCYd_qc607.png-wh_500x0-wm_ 3-wmp_4-s_117153670.png "title=" 2.png "alt=" Wkiom1m3-8pzkvwaaabwgcyd_qc607.png-wh_50 "/>

Follow the appropriate steps to enter the following view

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A5/1E/wKioL1m3-63BqW-2AAA02kL4oYA974.png-wh_500x0-wm_ 3-wmp_4-s_846010488.png "title=" 3.png "alt=" Wkiol1m3-63bqw-2aaa02kl4oya974.png-wh_50 "/>

, you need to press the P key and enter the password you just entered in grub to enter the edit state.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/A5/1E/wKioL1m3-97RV8uwAAAv4BSHLIo855.png-wh_500x0-wm_ 3-wmp_4-s_201643892.png "title=" 4.png "alt=" Wkiol1m3-97rv8uwaaav4bshlio855.png-wh_50 "/>

Enter the password to see the success! Before you can do the next step!


This article is from the "Costin" blog, make sure to keep this source http://brighttime.blog.51cto.com/12837169/1964784

Linux Protection boot password (2)

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.