If everyone can change the root password, then the password does not exist. So how do you prevent others from entering single-user mode through the Grub launcher to modify the root password???
Environment: Virtual Machine vmware8.0.4 CentOS 6.3
Set the password to enter the Grub boot program via the Grub-md5-crypt command
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/71/wKioL1gTPYKB2rqsAAAr0uaba14104.png-wh_500x0-wm_3 -wmp_4-s_3540106284.png "title=" 1.png "alt=" Wkiol1gtpykb2rqsaaar0uaba14104.png-wh_50 "/>
II with VI open the Grub Launcher's profile/etc/grub.conf and add a row of commands, and then
Save and exit.
Note: Actually/etc/grub.conf is/boot/grub/grub.conf's soft link
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/73/wKiom1gTP_eguUUUAABMKl0glY4849.png-wh_500x0-wm_3 -wmp_4-s_1031002511.png "title=" 2.png "alt=" Wkiom1gtp_eguuuuaabmkl0gly4849.png-wh_50 "/>
Triple-Start and press any key for a few seconds
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/71/wKioL1gTQaOi8NN3AAADXQLj_40735.png-wh_500x0-wm_3 -wmp_4-s_373942600.png "title=" 3.0.png "alt=" Wkiol1gtqaoi8nn3aaadxqlj_40735.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/73/wKiom1gTQf6gITHsAAAGz2u0Fag193.png-wh_500x0-wm_3 -wmp_4-s_818942097.png "title=" 3.0.png "alt=" Wkiom1gtqf6githsaaagz2u0fag193.png-wh_50 "/>
Four appears below, requires the password to enter the Grub startup program to enter the edit
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/73/wKiom1gTQszSYdGRAAAVnH4Fdc4084.png-wh_500x0-wm_3 -wmp_4-s_1977264126.png "title=" 3.png "alt=" Wkiom1gtqszsydgraaavnh4fdc4084.png-wh_50 "/>
Enter the password (this is the password to enter two consecutive times in the first step)
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/71/wKioL1gTQ9bT5WtYAAARz_lZo5Q280.png-wh_500x0-wm_3 -wmp_4-s_634897466.png "title=" 4.png "alt=" Wkiol1gtq9bt5wtyaaarz_lzo5q280.png-wh_50 "/>
Six entry to the Grub Launcher editing interface
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/74/wKiom1gTRC6Qm4KEAAATzX13Mjk001.png-wh_500x0-wm_3 -wmp_4-s_3032778907.png "title=" 3.1.png "alt=" Wkiom1gtrc6qm4keaaatzx13mjk001.png-wh_50 "/>
Note:
Clear text: Refers to the password entered two times on the keyboard
Ciphertext: Refers to a sequence of characters after encryption
This article is from the "12152777" blog, please be sure to keep this source http://12162777.blog.51cto.com/12152777/1866961
GRUB Launcher Setup Encryption virtual machine vmware8.0.4 CentOS 6.3