Forgot your Linux Mint login password? Don’t worry, it’s easy to reset your forgotten passwords.

In Linux world there’s a passwd command allows to change user password. A normal user may only change the password for their own account, while the superuser may change the password for any account.

Supported Platform:

  • All Linux Mint, Ubuntu, and their derivatives.

1. Get into recovery mode:

If you’re kept back from logging in, you have to run following steps first to get into system recovery mode, where you can do anything to fix your system problems!

  1. Boot or reboot your machine, press and hold down Shift key to get Grub boot menu. In some cases, you may use Esc key instead.

  2. Select Advanced options in menu, then boot the latest kernel with the “recovery mode”.

  3. You’ll get into Recovery Menu in a few seconds. There select “root – Drop to root shell prompt” and hit Enter, and hit Enter again to confirm for maintenance.

2. Reset user password:

In recovery mode, you have root (superuser) user privilege. You can change any user’s password, and do anything to the file system.

  • Run command to remount file system with read and write permission, while it’s read only by default.
    mount -o rw,remount /
  • Check username if you also forgot the name:
    ls /home
  • Reset user password via command:
    passwd USER_NAME_HERE

    Type a new password, no asterisk feedback, and again to confirm.

If everything goes OK, you’ll see “password updated successfully”. Now run reboot command to restart your system, and login with your new password and enjoy!

Conclusion:

You see that’s quite easy to reset user password, or we can say hack Linux Mint password! So if you’re working on public places and care about privacy and security, you may add password protect to the Grub boot-loader or hide the recovery mode from boot menu.