Help forgot root password

Archived topics about LMDE 1
Forum rules
scottjge
Level 4
Level 4
Posts: 242
Joined: Sun Sep 13, 2009 8:17 pm

Help forgot root password

Postby scottjge » 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

User avatar
xenopeek
Level 23
Level 23
Posts: 19022
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Help forgot root password

Postby xenopeek » 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.
Image

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

Re: Help forgot root password

Postby scottjge » 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

ddurdle
Level 3
Level 3
Posts: 125
Joined: Sat Dec 17, 2011 10:03 am

Re: Help forgot root password

Postby ddurdle » 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.


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 0 guests