Help forgot root password

Archived topics about LMDE 1 and LMDE 2
Locked
scottjge
Level 4
Level 4
Posts: 250
Joined: Sun Sep 13, 2009 8:17 pm

Help forgot root password

Post by scottjge »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29459
Joined: Wed Jul 06, 2011 3:58 am

Re: Help forgot root password

Post by xenopeek »

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: http://forums.linuxmint.com/viewtopic.p ... 87#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: 250
Joined: Sun Sep 13, 2009 8:17 pm

Re: Help forgot root password

Post by scottjge »

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: 153
Joined: Sat Dec 17, 2011 10:03 am

Re: Help forgot root password

Post by ddurdle »

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

Oh well.
Locked

Return to “LMDE Archive”