Root password recovery
I have problem with root password recovery. :-(
Distro: Redhat Fedora Core 3.
As I searched through the mailing list I found couple of ways to recover the root password.
1. Using single user mode
2. Using Linux installation CD and changing the files /etc/passwd and /etc/shadow. This included removing shadowing option in /etc/passwd file and removing the password hash in /etc/shadow.
Problem: I can not login in single user mode its password protected. And I do not know the password.
I used the second option but I could not reset the root password. Second time I tried this approach the /etc/shadow file was missing.
I need help on resetting the password. Is there any way to prevent unauthorized password modification? Is password change notification to sysadmin possible?
Let me know if you need more info.
Thanks a lot... in advance... :)
We faced such problem due to an unethical staff of our company...
# mount /dev/hda2 /tmp/root
Thanks for your reply ashamril.
I think I have missed the part...
I reboot the system with Fedora installation CD. went into rescue mode. changed the file passwd and shadow in /etc dir and rebooted the system again..
Did I miss anything else? It would be great if you outline the steps in detail.
After booting into rescue mode type mount to see where your linux root partition (in my example /dev/hda2) is mounted. Make sure it is mounted rw, if not then remount it as rw, e.g.
If /dev/hda2 is mounted read-only at mountpoint /mnt/sysimage then do this:
mount /dev/hda2 /mnt/sysimage -o remount,rw
Now you can edit the file /mnt/sysimage/etc/passwd and make root non-password protected.
<edit> This is probably among the "Top 10 asked questions" here and searching the forums will produce many hits for you to look through.
I did as you said and it worked..
How do i do when:
passwd: Autentication token manipulation error.
I run gentoo
EDIT: Problem solved thanks to kuser
|All times are GMT -5. The time now is 01:15 AM.|