search
To reset your lost or fogotten password:
Reboot your computer / Turn your computer on.
Hold down the Shift key at the start of the boot process to enable the GNU GRUB2 boot menu (if it does not show)
Select the entry for your Linux installation
Press e to edit.
Use the Arrow keys to navigate to a line that looks similar to this:
linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers]\[letters and numbers] ro quiet splash vt.handoff=7
Change ro quiet splash vt.handoff=7 to rw init=/bin/bash so it now reads:
linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers]\[letters and numbers] rw init=/bin/bash
Press F10 to boot your system.
Your system will boot up to a passwordless root shell.
Type in passwd yourusername
(if you have also forgotten your username, type cat /etc/passwd first to get a list of all users, yours should be at the end)
Set your new password.
Restart your system. ctrl-alt-del