Linux forgot root password

Source: Internet
Author: User

Restart the system first, in reading seconds 3,2,1, the mouse must point into the virtual machine, this time press any key, will be out of line below this

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/79/3F/wKioL1aMusXifIxqAAAglVP2qoo913.png "title=" Clipboard.png "alt=" Wkiol1amusxifixqaaaglvp2qoo913.png "/>

Press E to enter the Grub edit mode, which will now appear

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/79/40/wKiom1aMusSjBxyLAAAk9OunayE008.png "title=" Clipboard.png "alt=" Wkiom1amussjbxylaaak9ounaye008.png "/>

Move the cursor to the kernel line, and then press E to enter the edit interface of the kernel, and then the interface that appears, the last party input

Single (some input s or 1)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/79/3F/wKioL1aMuw-Ca79EAAAcFmZiLHI765.png "title=" Clipboard.png "alt=" Wkiol1amuw-ca79eaaacfmzilhi765.png "/>

When you press ENTER again to confirm,

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/79/3F/wKioL1aMuyuBrf0MAAAlI2VfhXU265.png "title=" Clipboard.png "alt=" Wkiol1amuyubrf0maaali2vfhxu265.png "/>

Press B to boot into single-user mode.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/79/3F/wKioL1aMu0fCFR0DAABAGiAw1hc635.png "title=" Clipboard.png "alt=" Wkiol1amu0fcfr0daabagiaw1hc635.png "/> in single-user mode, you will not need to enter a password in the Tty1 place to gain control of the terminal (and root identity). You can then use passwd to modify the root user's password.

Linux forgot root password

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.