Password forgotten

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Password forgotten

Postby EsimesacPeriodique on Sun Apr 15, 2012 11:50 pm

I got this problem:
What if I can't recall my pwd... I just installed Linux and made a mistake and entered nothing particular as password and I don't remember what it is...

Thx!
EsimesacPeriodique
Level 1
Level 1
 
Posts: 1
Joined: Sun Apr 15, 2012 11:41 pm

Linux Mint is funded by ads and donations.
 

Re: Password forgotten

Postby xenopeek on Mon Apr 16, 2012 6:35 am

Then you will have to reinstall. You can change the password of a user from the recovery mode option in the GRUB boot menu, but you will need to know the root password for that--which is initially set to the password of the user created during installation. So that doesn't help you, hence suggesting you reinstall and keep your password somewhere safe.
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10555
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Password forgotten

Postby remoulder on Mon Apr 16, 2012 8:16 am

Vincent Vermeulen wrote:need to know the root password for that

Actually Vincent, you don't! You can use init=/bin/bash to bypass the password request.
[Edit] your original post and add [SOLVED] once your question is resolved.

“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
User avatar
remoulder
Level 17
Level 17
 
Posts: 7674
Joined: Fri May 09, 2008 1:14 pm

Re: Password forgotten

Postby xenopeek on Tue Apr 17, 2012 4:03 am

Thanks remoulder, I didn't know that.

EsimesacPeriodique, you can recover your user's password as follows. Note that this only works if you have an unencrypted home folder, if you chose to encrypt your home folder during the installation of Linux Mint this will need different steps.

1. Boot your computer, and hold the shift key to make the GRUB boot menu show. Use the arrow keys to highlight the second entry in the menu (recovery mode) and press the 'e' key to edit the boot parameters. Scroll down to the line starting with 'linux' and at the end of that line add " init=/bin/bash" (without the quotes). Then continue the boot and you should drop to a text screen and are now root.

2. Start with mounting the filesystem so that you can write changes to it. Execute the following command:
Code: Select all
mount  -o remount,rw  /

3. Then type:
Code: Select all
passwd username

Where your replace username with your username. You are then asked to enter a new password for this user.

4. I think you can also run:
Code: Select all
passwd

And you can then set a new password for the root user. I suggest setting it the same as your other password, for now at least to avoid confusion.

5. Reboot:
Code: Select all
reboot
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10555
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands


Return to Newbie Questions

Who is online

Users browsing this forum: chiefjim, Roland, sirzune and 19 guests