Linux System password Recovery

Source: Internet
Author: User

The most important thing in a Linux system is the root password, as long as you know the root password, you have all the permissions, and even kill yourself.


For normal users, root can directly modify the gas password, usually passwd username

[Email protected]# passwd usernameenter new unix password:retype new UNIX Password:passwd:password updated successfully

Then the root password to forget, nor is there no way, is to find more trouble.

You first have to shut down the machine into the Grub interface, for entering the GRUB interface. Various statements are not easy, may be related to the operating system, commonly used there are two methods (immediately after the power-down SHIFT, if not enter, you can always press the SHIFT key after the boot, both of my methods are not successful, There is also a boot after the F10, the pro-test success, into the Grub page).

After entering. Select advanced options for Ubuntu, enter.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/9E/75/wKiom1mRWWCSLFKHAAAUXxGHt0c929.png-wh_500x0-wm_ 3-wmp_4-s_4069961231.png "style=" Float:none; "title=" screenshot from 2017-08-14 15:55:46.png "alt=" Wkiom1mrwwcslfkhaaauxxght0c929.png-wh_50 "/>


After the page jump do not hit enter, select Recovery mode. Press E to enter

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9E/63/wKioL1mRWWChkiEKAAAVFyw0MUs362.png-wh_500x0-wm_ 3-wmp_4-s_119529251.png "style=" Float:none; "title=" screenshot from 2017-08-14 15:56:19.png "alt=" Wkiol1mrwwchkiekaaavfyw0mus362.png-wh_50 "/>

Replace the RO recovery nomodeset "with" Quiet splash RW Init=/bin/bash, then press [F10] or [ctrl+x] to restart the system.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9E/75/wKiom1mRWWCy29E4AAAzkdMWRiQ912.png-wh_500x0-wm_ 3-wmp_4-s_294092523.png "style=" Float:none; "title=" screenshot from 2017-08-14 15:56:52.png "alt=" Wkiom1mrwwcy29e4aaazkdmwriq912.png-wh_50 "/>


After rebooting, start a read-write bash as root, use the command passwd to change the root password, and then press [Ctrl+alt+delete] to restart the system. You can also try quit or exit. Thought Reboot,shutdown,poweroff and other orders can, the pro-test does not work.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9E/64/wKioL1mRXFTg3cFDAABG7f2Oy-c194.png "title=" Screenshot from 2017-08-14 16:14:44.png "alt=" Wkiol1mrxftg3cfdaabg7f2oy-c194.png "/>

After the reboot, you can log in as root.

This article is from the "canvas shoes can walk the cat step" blog, please be sure to keep this source http://9409270.blog.51cto.com/9399270/1956160

Linux System password Recovery

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.