Teach you 5 steps to restore the password of Ubuntu system

  

As the application of the network continues to increase, everyone has a lot of account passwords. Fortunately, those on the web such as Facebook, Gmail, QQ, etc. will have a "forgot password" option to help you recover your forgotten password. But what if your operating system password is forgotten? You can not hesitate to say that this kind of thing is impossible, but if you are not afraid of 10,000, you will be afraid of it.


Let's assume that you are unloaded when you install Ubuntu and don't care to enter a string of characters. Then you forget it, or you forget it if you haven't turned it on for a long time. What other reasons. At this time, the first thing you can think about is to reload the system for a few dozen minutes. But this took time and lost a lot of the original data. But is there a way to modify your forgotten password after a simple 5 steps when your computer starts up, is it convenient?

1. Turn on the computer and press the Esc key as soon as "Press Esc to enter grub message" appears on the screen.

2. Then there will be three options, you select "recovery mode" and press Enter (as shown in Figure 1).

3. Your computer will boot from the boot to the shell. When the command prompt appears, type "passwd username" The username here is your username. If you forget the username, there is no way, you can Enter "ls /home" to view the username first, then enter the above command.

4. When the prompt appears, you can enter your new password directly and confirm it again.

5. Then enter "shutdown -r now" to restart your computer and enter with your new password.

In contrast, such a simple method is much more convenient for reinstalling the system.

Copyright © Windows knowledge All Rights Reserved