Forgot Pass, Changed it, Reboot and Login not working right

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

Forgot Pass, Changed it, Reboot and Login not working right

Postby Noble713 on Wed Apr 29, 2009 10:42 pm

I'm running Linux Mint 6 with Fluxbox on an Eee PC 1000. I forgot my username and password. I used my Backtrack 3 live SD card to find the username (tail /etc/passwd ?). I reboot the system and at Linux Mint's GRUB screen I add
Code: Select all
init=/bin/bash
so it boots straight to the terminal. Then I used
Code: Select all
 passwd [username]
to change the password. However, when I try to reboot using
Code: Select all
shutdown -r now
it says something about "connection refused". I use CTRL-ALT-DEL to reboot and try to login to Linux Mint normal. It's still not working. confused am I doing wrong? I really wish I had set a root password. *shakes fist at mintAssistant*
Noble713
Level 1
Level 1
 
Posts: 2
Joined: Wed Apr 29, 2009 10:33 pm

Linux Mint is funded by ads and donations.
 

Re: Forgot Pass, Changed it, Reboot and Login not working right

Postby Husse on Thu Apr 30, 2009 7:09 am

I started on another answer but then I realised what the problem is
You changed the root password - if you add init=/bin/bash you are logged in to root (without being asked a password)
It seems that you get a mounted file system so you changed the root password
You have to tell bash which user you want to change
passwd your_name
And the "connection refused" error is normal - this is a very limited Linux
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Forgot Pass, Changed it, Reboot and Login not working right

Postby Noble713 on Thu Apr 30, 2009 9:58 pm

Husse wrote:I started on another answer but then I realised what the problem is
You changed the root password - if you add init=/bin/bash you are logged in to root (without being asked a password)
It seems that you get a mounted file system so you changed the root password
You have to tell bash which user you want to change
passwd your_name


*scratches head* I thought that was what I did. Even if I was logged in as root due to the bash thing, if I entered passwd billybob (example), it should change the password for billybob, and not for root, right?
Noble713
Level 1
Level 1
 
Posts: 2
Joined: Wed Apr 29, 2009 10:33 pm

Re: Forgot Pass, Changed it, Reboot and Login not working right

Postby Husse on Fri May 01, 2009 6:29 am

Sorry - I missed* that you wrote passwd username - I was thinking too much of the init=/bin/bash part
I thought that did not mount the partitions so I checked and there was a mounted root partition alright
There are a bunch of "nasty" attacks you can do if you have physical access.
Google for change or delete password linux and you'll immediately find a bunch of solutions
One thing you might try is to delete the hidden files .ICEauthority and .Xauthority in home
They are recreated automatically if deleted
* Seems I answer to may posts - has to be quick :)
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Forgot Pass, Changed it, Reboot and Login not working right

Postby emorrp1 on Fri May 01, 2009 5:35 pm

dlkreations pointed out this how-to in another thread: http://www.watchingthenet.com/ubuntu-guide-for-windows-users-reset-your-password-when-you-have-forgotten-it.html It appears to me that you also have to add the "rw" option to the grub line, as well as the init.
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
emorrp1
Level 8
Level 8
 
Posts: 2322
Joined: Thu Feb 26, 2009 8:58 pm

Re: Forgot Pass, Changed it, Reboot and Login not working right

Postby Husse on Fri May 01, 2009 6:19 pm

It appears to me that you also have to add the "rw" option to the grub line, as well as the init.

I'm obviously getting tired :)
Yes - the file system is either not mounted or mounted read only - I seem to remember that now - should have mentioned that
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 32 guests