Forgot root password

mnikolica22
Posts: 6
Joined: Tue Sep 07, 2010 12:50 pm

Forgot root password

Postby mnikolica22 » Thu May 12, 2011 9:49 am

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!

majide84
Posts: 13
Joined: Mon Apr 18, 2011 3:46 am

Re: Forgot root password

Postby majide84 » Thu May 12, 2011 11:57 am

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.

mnikolica22
Posts: 6
Joined: Tue Sep 07, 2010 12:50 pm

Re: Forgot root password

Postby mnikolica22 » Sat Jun 18, 2011 11:45 am

Thanks for the help... Just another newb question though.. My mount point, would that be something like /dev/sda?

Thanks

Mike

p5000
Posts: 1
Joined: Sat Jun 18, 2011 11:51 am

Re: Forgot root password

Postby p5000 » Sat Jun 18, 2011 11:58 am

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:

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Forgot root password

Postby cpg » Sat Jun 18, 2011 1:28 pm

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).
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

mnikolica22
Posts: 6
Joined: Tue Sep 07, 2010 12:50 pm

Re: Forgot root password

Postby mnikolica22 » Sun Jun 19, 2011 12:02 pm

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Forgot root password

Postby cpg » Sun Jun 19, 2011 12:12 pm

great to hear! :D
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 25 guests