How to Reset Your Password

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

How to Reset Your Password

Postby overthetop on 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.

Vincent Vermeulen 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:
Code: Select all
ecryptfs-unwrap-passphrase

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.


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)

From the recovery menu select Drop to root shell prompt.

At the prompt enter:
Code: Select all
passwd
This will let you change your root password.

If you just want to change your user password you could enter:
Code: Select all
passwd [username]

Be sure replace [username] with your username.
Last edited by overthetop on Wed Oct 26, 2011 11:54 am, edited 1 time in total.
Image
"A wise man can learn more from a foolish question than a fool can learn from a wise answer." -- Bruce Lee
User avatar
overthetop
Level 4
Level 4
 
Posts: 368
Joined: Thu Oct 06, 2011 10:25 am
Location: /home/overthetop

Linux Mint is funded by ads and donations.
 

Re: How to Reset Your Password

Postby xenopeek on Wed Oct 26, 2011 11:45 am

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:
Code: Select all
ecryptfs-unwrap-passphrase

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.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to Reset Your Password

Postby overthetop on Wed Oct 26, 2011 11:57 am

Vincent Vermeulen 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:
Code: Select all
ecryptfs-unwrap-passphrase

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.

Thanks for the added info Vincent :)
I forgot to specify the proper uses and warnings.
Image
"A wise man can learn more from a foolish question than a fool can learn from a wise answer." -- Bruce Lee
User avatar
overthetop
Level 4
Level 4
 
Posts: 368
Joined: Thu Oct 06, 2011 10:25 am
Location: /home/overthetop

Re: How to Reset Your Password

Postby xenopeek on Wed Oct 26, 2011 12:00 pm

Thanks for updating it this fast 8) Your tutorial is very good for anybody without an encrypted home folder.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to Reset Your Password

Postby overthetop on Wed Oct 26, 2011 12:06 pm

I wrote this tutorial after answering about four different people's password questions.
Now, I just have to refere them to here! :lol:
Image
"A wise man can learn more from a foolish question than a fool can learn from a wise answer." -- Bruce Lee
User avatar
overthetop
Level 4
Level 4
 
Posts: 368
Joined: Thu Oct 06, 2011 10:25 am
Location: /home/overthetop

Re: How to Reset Your Password

Postby someonelost on Thu Jul 26, 2012 9:44 am

Hey Thanks for the info, but when I tried this and selected Drop to root shell prompt, a prompt showed up but I couldn't type in it. It said enter root password or enter Control-D to continue but either way no characters would show up after prompt no matter what keys I pressed, it just remains blank like it can't register the keyboard anymore..any ideas or alternate route?
someonelost
Level 1
Level 1
 
Posts: 5
Joined: Mon Jul 09, 2012 12:14 pm

Re: How to Reset Your Password

Postby xenopeek on Thu Jul 26, 2012 11:07 am

Just type your password; on the terminal, as a security measure, you are never shown feedback from typing your password. So the cursor doesn't move and neither do any mask characters like **** appear.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to Reset Your Password

Postby oobetimer on Thu Jul 26, 2012 2:44 pm

Vincent Vermeulen wrote:Just type your password; on the terminal, as a security measure, you are never shown feedback from typing your password. So the cursor doesn't move and neither do any mask characters like **** appear.

That does not work anymore. You have to reset via liveCD/USB .. :wink:

viewtopic.php?f=90&t=102894&p=584894&hilit=passwd&sid=cbe29fe104357f517d46ad4eb519c800#p584894
User avatar
oobetimer
Level 7
Level 7
 
Posts: 1889
Joined: Tue Jun 01, 2010 12:53 pm
Location: Finland / above the Arctic Circle

Re: How to Reset Your Password

Postby xenopeek on Thu Jul 26, 2012 2:57 pm

oobetimer wrote:That does not work anymore. You have to reset via liveCD/USB .. :wink:

Ah, yes of course... If you never set the root password you aren't going to reset your user's password that way.

But, you can add the boot parameter init=/bin/bash from GRUB and this will allow you to boot your system and become root without needing a password. Details are given in: http://linuxers.org/howto/recover-lost-root-password
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14807
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 9 guests