Ubuntu root password retrieval

Source: Internet
Author: User
Ubuntu system root password retrieval: we still need to install a ubuntu system to set the host name. After the system is installed, click Continue to restart to start the system, you can use a user-defined account to log on to the system. The system root account is not enabled by default because the User-Defined logon user is used during system installation. You need to switch to the root account and reset the root password, then you can use the root account

Ubuntu system root password retrieval:

We still need to install a ubuntu System

Set Host Name

After the system is installed, click Continue to restart to enter the system.

After the startup, enter the system through a custom account

Because the system is installed with a custom login user, and the system's root account is not enabled by default, we need to switch to the root account, and then reset the root password, then you can log on through the root account

Next we simulate forgetting the root password:

After the system is restarted, press the ESC keyboard, select the second Advanced options for ubunt, and then press E (Note: Do not press Enter)

Then move the cursor to the bottomRo recovery nomodesetChangeRw single init =/bin/bash

Then pressCtrl + xOr enterSingle User Mode

ThenCtrl + x or F10 return system advanced optionsThen, Select Restore Mode and press enter to enter single-user mode.

The system enters the single-user mode:

In the same way, we can usePasswd rootChange Password

After the restart, log on using the modified 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.