Solution for forgetting the username and logon password in Ubuntu

Source: Internet
Author: User
I went to the company for an internship Today. the company assigned me an old computer with a dual system (XP and Ubuntu) installed on the computer. the user name and password are required for the Ubuntu system to start up. what should I do? Label: Ubuntu

I went to the company for an internship Today. the company assigned me an old computer with a dual system (XP and Ubuntu) installed on my computer. what should I do if I need a user name and password to start the Ubuntu system? (I figured out that the employee who used the computer must have left the company. I still want to solve it myself.) I finally found a way to change the user name and password on the Internet. As follows:

(1) first Restart the system (there is an option in the drop-down list in the upper right corner)

(2) Press Shift until the following menu appears. Select recovery mode, that is, recovery mode.

(3) the following page is displayed. select Drop to root shell prompt to obtain the root permission.

(4) enter cat/etc/shadow in the following # to view the user name (if you forget the user name)

(5) press passwd "yulongsheng" and then press the password twice.

(6) restart the system.

OK.

Other netizens added:

1. restart, press ESC to enter the Boot Menu, and select recovery mode (generally the second option ).
2. run cat/etc/shadow at the # prompt to check the user name.
3. enter passwd "user name" (which must be enclosed in quotation marks ).
4. enter a new password.
5. restart and log on with 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.