How do I reset my password in Lubuntu 16?

In general, the problem is, I forgot my password, or someone changed it.

In general, it does not work through recovery mode, the system crashes.

What should I do?

1 answers

Boot from Ubuntu Live CD.

Press Ctrl-Alt-F1

sudo mount /dev/sda1 /mnt

sudo mount --bind /dev /mnt/dev

sudo mount --bind /proc /mnt/proc

sudo mount --bind /sys /mnt/sys

sudo chroot /mnt

sudo passwd <user>

User replace it with your username in the system.

The sda1 parameter may also differ, replace it with your own if necessary.

One of the sources:

 3
Author: Михаил Алексеевич, 2017-08-25 11:39:52