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)