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.
- All Linux Mint, Ubuntu, and their derivatives.
UPDATE: Linux Mint now require root password authentication to get into recovery mode! If you don’t remember the root password, a bootable live USB is the only choice to rescue unless the file-system is encrypted.
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!
- 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.
- Select Advanced options in menu, then boot the latest kernel with the “recovery mode”.
- You’ll get into Recovery Menu in a few seconds. There select “root – Drop to root shell prompt” and hit Enter. If root account enabled, you have to type the password to get access. If not, it will prompt “root account is locked”
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:
- Reset user password via command:
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!
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.