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

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Husse

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

Post by Husse »

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
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.
Husse

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

Post by Husse »

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 :)
emorrp1

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

Post by emorrp1 »

dlkreations pointed out this how-to in another thread: http://www.watchingthenet.com/ubuntu-gu ... en-it.html It appears to me that you also have to add the "rw" option to the grub line, as well as the init.
Husse

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

Post by Husse »

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
Locked

Return to “Beginner Questions”