1 Answers1

0

What distro are you running? If it's ubuntu based, when you turn it on you can hold down the shift key as soon as you power it on to access the grub menu. When you are in the grub menu, select advanced options. Then select ubuntu (recovery mode). Now go to the root option. It should be near the bottom. Next, remount the root partition with this command:

mount -rw -o remount /

Now to reset the password, just type

ls /home | grep `^d' | passwd $USER

Then type your password and you are done! Hope this helps.