Reset the root password for Ubuntu and set the root password for ubuntu.

Source: Internet
Author: User

Reset the root password for Ubuntu and set the root password for ubuntu.

Press Esc to bring up the GRUB menu. Enter advanced mode.

 

Select recovery mode and press 'E.

 

Change ro recovery nomodeset to rw single init =/bin/bash

 

Press ctrl + x to enter the single-user mode.

Then reset the root password and run the passwd root command.

Restart.


How can I reset Ubuntu if I forget the root password?

Enter single user mode:
1. When starting grub, use the up/down key to move to the recovery mode of the second line, and press e (note not to press Enter)
Ubuntu, With Linux 3.2.0-23-generic (recovery mode)
2. Change ro recovery nomodeset to rw single init =/bin/bash.

Press ctrl + x or F10 to enter the single-user mode.




Ubuntu password reset method badly needed

You have configured grub. In single-user mode, enter the following commands:
Mount/-o remount, rw
Passwd
Enter the new password.

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.