Ubuntu Password Reset GuideΒΆ
Follow the steps for resetting your Ubuntu Password:
Boot up your device / VM.
Go into the boot menu by either holding down
SHIFT
or pressingESC
depending on your device; This will get you into the GRUB menu.Navigate to the 2nd option from the top (Top most Recovery Boot Option) and then hit
ENTER
; This will get you to the Recovery Menu.Now, the root prompt shows up like:
root@ubuntu:~#
.Remount the filesystem using:
mount -o remount,rw /
.Next, you need to know your user name. You can do this by using:
ls /home
.To change the password, use:
passwd userName
, replacing userName with your user name.Type in
exit
and hitENTER
to go back to the Recovery Menu and then select resume to boot into Ubuntu.
Images taken from stackoverflow