Ubuntu 16.04: Reset forgotten password

This article will describe resetting forgotten password.

 

2 Reset password on single user mode

Add "1" to kernel parameter on GRUB.

After power on machine, press Esc key and display GRUB menu.

0001_GRUBMenu.png

Select "Ubuntu" and press e key.

0002_KernelBootParameter.png

Add "1" at linux statement. Press Ctrl-x key and kernel will boot. 

0003_Edit-KernelBootParameter.png

After displayed "Press Enter for maintenance", press Enter key and root shell prompt will start.

If your prompt is mojibake, please use LANG=C.

Run password command and input your password.

0004_passwd.png

After running exit command, Ubuntu 16.04 will start and you can use reset password.

0005_login.png