Page 1 of 1

Forgot root password

Posted: Thu May 12, 2011 9:49 am
by mnikolica22
I'm a donkey and forgot my root password. What recourse, if any, do I have to get back into root? Can I reinstall amahi and not loose information already stored?

Thanks for any help in advance!

Re: Forgot root password

Posted: Thu May 12, 2011 11:57 am
by majide84
Hi,

boot from a Live CD. Mount your root file system. Type in a console "nano /yourmountpoint/etc/shadow"

Then you see something like that:

root:LDHSKF34534:11111:0:99999:3

Your password is LDHSKF34534. Delete this string.

After that you see.

root::11111:0:99999:3

Now your root has no password.

Umount your file system and reboot.

Re: Forgot root password

Posted: Sat Jun 18, 2011 11:45 am
by mnikolica22
Thanks for the help... Just another newb question though.. My mount point, would that be something like /dev/sda?

Thanks

Mike

Re: Forgot root password

Posted: Sat Jun 18, 2011 11:58 am
by p5000
Not sure if this is the same problem,
Just installed Fedora 14 and then amahi - no problems!! rebooted
but I can't access the HDA Setup because the login page does not recognize my user/password ??
Also, im new to linux too.
sooo what do I do from here?
:shock:

Re: Forgot root password

Posted: Sat Jun 18, 2011 1:28 pm
by cpg
make sure you are using the right capitalization.

you should use the exact username you created in Fedora when installing.

for the issue of forgetting the root password, you may want to boot in single user mode and reset the password (search for that - should be a lot of quick guides on that).

Re: Forgot root password

Posted: Sun Jun 19, 2011 12:02 pm
by mnikolica22
Thanks for all your help guys. Got it figured out. Had a problem getting it to boot in single user mode as I didn't have the grub boot screen show up. The trick I found was to hit the up arrow during boot and that allowed me to access single user mode by putting a 1 at the end of the command line. After that it was as simple as changing the password and got me back on track. That saved me a huge amount of time because I was about to reinstall the whole shebang.

Thanks again,

Mikes

Re: Forgot root password

Posted: Sun Jun 19, 2011 12:12 pm
by cpg
great to hear! :D