Article title: explains how to restore the password of Ubuntu in step 5. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. with the increasing number of network applications, everyone has a lot of account passwords. Fortunately, all applications on the Internet, such as Facebook, Gmail, and QQ, will have a "forgot password" option to help you recover your forgot password. But what if your operating system password is forgotten? You don't have to hesitate to say that this kind of thing is impossible, but anything that is not afraid of 10 thousand will be afraid of it.
Let's assume that you did not care about entering a string of characters during Ubuntu installation, and forgot the user password when it was started later, or if you haven't started it for a long time, you forgot the user password or other reasons. At this time, you can first think of taking a few minutes to reinstall the system. However, it takes time to lose a lot of the original data. However, there is a way to modify the password you forgot in five simple steps when your computer starts up. is it very convenient?
1. open the computer and Press Esc immediately when "Press Esc to enter grub message" appears on the screen.
2. three options are displayed. select "recovery mode" and press enter (1 ).
3. your computer will enter the shell from startup. when a command prompt appears, enter "passwd username". here, username is your username. if you forget your username, you can enter "ls/home" to view the user name, and then enter the preceding command.
4. when a prompt appears, you can enter your new password and confirm it again.
5. enter "shutdown-r now" to restart your computer and use your new password.
In contrast, this simple method is much more convenient for reinstalling the system.
Select "recovery mode" when entering the settings"