HellBender Posted March 16, 2004 Share Posted March 16, 2004 My friend is running Red Hat 9 and he's forgotten his root password. He has a non-root account that he usually uses, and now he wants to install something but he's forgotten the root password :rolleyes: There are many tools in Windows to get the admin password if you have access to the box... Are there any such tools for RH9? Brute force would work fine for him, if there are any programs for that. Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted March 16, 2004 Veteran Share Posted March 16, 2004 If he doesn't use a boot password, you can log into SINGLEUSER and set password for root there. Other than that, the passwords are shadowed md5sumed, so little chance of cracking them.... Link to comment Share on other sites More sharing options...
the evn show Posted March 16, 2004 Share Posted March 16, 2004 if the user can sudo then try: sudo passwd root enter the password for the current logged in user, then change the password for root. Link to comment Share on other sites More sharing options...
kemical Posted March 16, 2004 Share Posted March 16, 2004 and i think redhat installs that by default for cases like this ;-) Link to comment Share on other sites More sharing options...
bladerunner81 Posted March 16, 2004 Share Posted March 16, 2004 not sure where rh stores the passwords, but i assume they are in the standard path. boot up the pc with a knoppix or any other livecd, login as root into the livecd-environment, chroot into your harddrive holding the root-partition of rh. then execute "passwd" and enter a new root password. reboot and be fine. verified that one with gentoo, using gentoo livecd & knoppix 3.3 for livecd-booting. Link to comment Share on other sites More sharing options...
mr_daemon Posted March 21, 2004 Share Posted March 21, 2004 Or boot from knoppix, edit the shadow file. Copy the passwd md5 hash from his user account to root. Okay I _am_ getting anal about things now. Link to comment Share on other sites More sharing options...
Recommended Posts