Help forgot root password

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

Help forgot root password

Postby scottjge on Fri Feb 01, 2013 1:30 pm

Please, could someone give me some advise ? I put linux mint debian xfce on my brothers computer and we can not log in. He forgot the password and I can not remember what I used. I know that I can do a re-install but I rather not unless I absolutely have to. Is there a way of resetting the password ? I have tried using the terminal with the command " passwd " but it ask or the current password......... we don"t know the password so that doesn't work . I have googled the problem but can not find anything that will work. Everything that I find is for Ubuntu.

Any idea"s or instructions would be appreciated.

scotthge
scottjge
Level 4
Level 4
 
Posts: 226
Joined: Sun Sep 13, 2009 8:17 pm

Linux Mint is funded by ads and donations.
 

Re: Help forgot root password

Postby xenopeek on Fri Feb 01, 2013 2:39 pm

This should probably also work from LMDE. Press and hold down left shift during boot to get the GRUB boot menu to show. Press the 'e' key to edit the boot parameters. Scroll down to the line starting with "linux" and on that line add the two parameters "rw init=/bin/bash" (without the quotes). That will boot you to a basic bash shell as root without needing the password. You can then run passwd to reset the root password, or passwd username to reset the password of another user.

Steps more detailed here: viewtopic.php?f=90&t=110928&p=621487#p621487. Though these are for Linux Mint 13, I think the steps would be very similar on LMDE.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 14661
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Help forgot root password

Postby scottjge on Fri Feb 01, 2013 4:50 pm

xenopeek, thank you for your reply. I will go over to my brothers house this week -end and follow your directions. Thank you so much, now I do not have to re-install the OS again.

scotthge
scottjge
Level 4
Level 4
 
Posts: 226
Joined: Sun Sep 13, 2009 8:17 pm

Re: Help forgot root password

Postby ddurdle on Sat Feb 02, 2013 6:41 pm

I wonder what the point of passwords are when a hack like this is easy enough to bypass a password.

Oh well.
ddurdle
Level 3
Level 3
 
Posts: 106
Joined: Sat Dec 17, 2011 10:03 am


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 5 guests