Retrieve the forgotten Linux Password

Source: Internet
Author: User

In ununtu Linux, it is proven in practice.
Source: the release of ubuntu10.10beta is more than a month old. The official version 10.10 is available.
The new version has many new features. So I want to try it out after installing the virtual machine.
A version (9.10) has been installed on the VM ).
The Overlord Oracle acquired sun, so a series of earlier products of Sun belong to Oracle, including Sun, MySQL, virtualbox, etc.
Many ox X products. Is virtualbox 3.0.x or sun logo used before. Only install ubuntu10.10 and do not want to upgrade it to 3.2.x.

Process:
Start to install ubuntu10.10.
The process of installing Linux on a virtual machine (the same for any other system) is very simple and will not be repeated here.

About 30 min. Reboot is installed.

Use full screen, seamless mode, 3D, and other effects. The virtualbox enhancement package must be installed.
Assign a virtual optical drive to load the image file of the enhancement package, and enter the Linux terminal to run the enhancement package.
Along the way, an error is reported, indicating what kernel does not support.

No such problem exists in the past 9.04 and 9.10.

I thought that my colleague had installed 10.10, but this problem never occurred. My colleague used virtualbox3.2. It may be that the VM is not compatible with the latest Ubuntu version.

Download the latest version of virtualbox.

Install virtualbox all the way. Sure enough, all changed to the Oracle logo.

Here, I mentioned that Ubuntu has already been installed. Nobody wants to install it again on the new virtualbox. Wait for 30 minutes. You can export a virtual computer and make a backup. In this way, you can import data to the new virtual machine.

After the installation, virtualbox automatically imports the original virtual computer. The previous backup was useless (this habit is good, but it is useless here. It can only be said that virtualbox is user-friendly ).

Install the enhancement feature again. No error.

So, start ubuntu10.10, normal.

Start ubuntu9.10 and prompt that the password verification fails. I have not performed any password change operations before (I only backed up ubuntu10.10 and 9.10 ),
It may be because the automatic scanning and import of virtualbox damaged the password file (I guess ).

At that time, I was eager to experience ubuntu10.10, and I had no time to study it.

This morning, I tried to start it again, but I still returned a wrong password.

Xiao Qiang cannot solve the problem because it is not too late to delete it. Call Google.

I have found several strong articles on Google. The following is a summary:

Ubuntu supports password retrieval. However, this also indicates a problem. Once a hard disk is obtained, all the security mechanisms disappear.
The following describes how to retrieve a password:

1. boot

2. In the grub startup list, Press ESC

3. Press e to modify the option that is usually started.

4. In the kernel *** line, press E

5. Add RW init =/bin/Bash to the end.

6. Confirm

7. Start by B

You are using the root user, so be careful not to press other commands unless you know what you are doing.

8. Use passwd <User Name> to reset your password

9. Restart shutdown-R now

Result: After performing the preceding steps, ubuntu9.10 is successfully started. The password is a new one.

Suggestions and jokes (reproduced + processed ):
If a malicious person is close to your computer and you are no longer there, he can easily change the user password. This is easy to do. Add the password to grub. If he restarts the system, use livecd to guide the system, this is easy to do. Add the BIOS password. If he opens the chassis, remove the hard disk and mount it to other systems ~~~ There is no absolutely safe way at all. Set a password and never let others approach your computer. You can also add a lock to the computer and connect the AC (connected to the AC. Haha. Joke.

Others: I searched the internet. It seems that there are many other ways to find the forgotten password.
For example, when starting, select recovery mode to start, and then passwd {user }. This method has not been tried.

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.