How to Reset Your Password
Posted: Wed Oct 26, 2011 11:40 am
This is a simple tutorial to show you how to reset your password.
This should only be done when a root password is forgoten and only if your home folder is not encrypted. This is not for changing your user password. Please change your user password from Preferences.
From the recovery menu select Drop to root shell prompt.
At the prompt enter:This will let you change your root password.
If you just want to change your user password you could enter:
Be sure replace [username] with your username.
This should only be done when a root password is forgoten and only if your home folder is not encrypted. This is not for changing your user password. Please change your user password from Preferences.
In order to reset your password, you have to boot into single-user mode. You can do this by selecting the recovery mode option which is usually the second choice. (If the grub menu is not visible hold the shift key down at bootup)xenopeek wrote:WARNING! Do not do this if you have an encrypted home folder; you will not be able to access your encrypted home folder contents anymore. Change your password from Menu > Preferences > About Me, or Menu > Control Center > Users and Groups.
If you do have an encrypted home folder, please be sure to record your passphrase that you need to access your files should you forget your login password. Without this passphrase, you will not be able to recover your encrypted home folder contents in any way. Log in, open a terminal, run the following command and store the output in a safe place:Hopefully you will never need it, but I suggest you do this immediately if you haven't done so already after installing Linux Mint with an encrypted home folder.Code: Select all
ecryptfs-unwrap-passphrase
From the recovery menu select Drop to root shell prompt.
At the prompt enter:
Code: Select all
passwd
If you just want to change your user password you could enter:
Code: Select all
passwd [username]