The Ubuntu system starts by selecting Recovery mode, which is the recovery mode.
650) this.width=650; "src=" Https://c.ikafan.com/upload/2d/fa/2dfae06437b28e3aac125e2347a59f74_thumb.png "alt=" Ubuntu forgot user name and login password solution "title=" in Ubuntu forgot username and login password solution "style=" border:0px; "/>
Then choose drop to root shell prompt, which is to get root privileges.
650) this.width=650; "src=" Https://c.ikafan.com/upload/4b/fc/4bfcb96c31d2dc1e7b82bd09894432cc_thumb.png "alt=" Ubuntu forgot user name and login password solution "title=" in Ubuntu forgot username and login password solution "style=" border:0px; "/>
Enter a command to view the user name Cat/etc/shadow,before the $ number is the user name
Input command: passwd "user name" Enter the new password can be entered
How to handle Ubuntu forgot password