This article explains how to get your Linux system password reset.
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
ro quiet splash vt.handoff=7to
rw init=/bin/bashso it now reads:
linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers]\[letters and numbers]
- Press F10 to boot your system.
- Your system will boot up to a passwordless root shell.
- Type in
(if you have also forgotten your username, type
cat /etc/passwdfirst to get a list of all users, yours should be at the end)
- Set your new password.
- Restart your system.