Resetting Root password
Is there a way to reset the root password with a script.
Currently i have a custom boot cd that boots up, mounts the partition and overwrites the shadow file with my original one. The password doesn't work. Do you HAVE to run passwd on the system or is there a better way to reset the password automatically? |
You have to run "passwd" as root. Another of the nice security features that separates *nix from that OS that comes from the State of Washington's garbage dump.
|
Re: Resetting Root password
Quote:
Anyway for your reference: http://www.fedoraguide.org/fc2/fc2be...ordifforgotten Should work for your distro too |
If you're forgetting your password often enough that you need a script to reset it, maybe you should just write it down ;-)
Enjoy! --- Cerbere P.S. I hear that ginkgo-biloba stuff really works, but I keep forgetting where I put the bottle. |
lol! Yeah. This is not for my personal machine. Anyway i figured out how to do it. Just overwritting the shadow hash will work. I just had a spelling mistake which caused it not to work. Thanks!
|
All times are GMT -5. The time now is 09:25 PM. |