Passwords are often used in our lives, and each person will have several passwords. Linux in Root as Superuser, has the right to modify all the files under Linux. Superuser is a specific account, and actions performed on this account can cause unrecoverable damage to the operating system. If one day, root This super administrator forgot the password, how can we modify it through the command interface. We do experiments in virtual machines to simulate the environment.
First turn on the virtual machine, press any key
650) this.width=650; "height=" 354 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6B/F0/ Wkiol1u7pcxwfr0gaadhrxeyyck385.jpg "border=" 0 "/>
By letter E
650) this.width=650; "height=" 345 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6B/F0/ Wkiol1u7pcaiay1kaackwm-df64940.jpg "border=" 0 "/>
Select 3rd-Press Letter E
650) this.width=650; "height=" 365 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6B/F0/ Wkiol1u7pcfaaclcaaecfs8odqi442.jpg "border=" 0 "/>
Enter a space-followed by the number 1-carriage return
650) this.width=650; "height=" 340 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/F0/wKioL1U7PcjTEKLaAABs8rpkl_ S168.jpg "border=" 0 "/>
Then press the letter B
650) this.width=650; "height=" title= "image" style= "Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6B/F0/ Wkiol1u7pciw-bnjaaddivrabjm193.jpg "border=" 0 "/>
Enter the password by entering the command to change the password passwd-. When you enter a password, the password is not displayed.
650) this.width=650; "height=" 295 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/6B/F0/wKioL1U7PcnzVQVRAAC_ Rnujuv8543.jpg "border=" 0 "/>
Restart, reboot
650) this.width=650; "height=" 331 "title=" image "style=" Border:0px;padding-top:0px;padding-right:0px;padding-left : 0px;background-image:none; "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6B/F0/ Wkiol1u7pcrsoumcaadiceumyty003.jpg "border=" 0 "/>
So we reset the root Super admin password.
Linux forgot root password how to modify