Forgot your Ubuntu user password, can't login system; it doesn't matter, it's easy to reset your password on Ubuntu, even if you forget your username.
#1 into
Recovery Mode
Recovery Mode that is, recovery mode; in the Grub boot menu, select "Advancedoptions for Ubuntu":
If you do not enter the GRUB boot menu at boot time, you can hold down the Shift key while booting.
#2 Selectroot Drop to root shell prompt
Go to the Recovery menu and select root ...
Enter the command line;
#3 execute the following command sequentially<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 13px ! important; line-height: 17px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick"># mount-o Rw,remount/# ls/home # users in the system</textarea>
12 |
# mount-o Rw,remount/ # ls/home # users in the system |
Reset Password:
<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 13px ! important; line-height: 17px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">passwd your_user_name</textarea>
Execute exit command back to navigation menu, select Resume ... Start the system normally.
Ubuntu 16.04 Reset Password