How to change forgotten password

You can't do this without being root.

:warning: Also be aware that if you had encrypted your $HOME directory, the following method will probably means you loose your files! :warning:

  1. Shut down the device
  2. During boot, hold ESC or SHIFT key down to get to the GRUB
  3. In GRUB, use the advanced options for Ubuntu:

Boot into recovery mode:
Sorry this picture is from a VM and the menu is not clearly visible, hopefully that'll be better for you

At the recovery menu select "root"

Then you have to remount the root partition in read / write mode, because root mode mounts it read-only.

mount -o remount,rw /

After that use the passwd command to update the target user's password:

passwd ouroumov

And reboot:

init 6


A post was merged into an existing topic: Password problem