|
-
Mar 31st, 2003, 11:43 PM
#1
Recover Linux Root Password
I'm running Red Hat 7.2 on a P4/256MB. I've got a GRUB loader, if that's of any help.
How can I recover the root password, or at least change it? I've lost the current password, and can't log into Linux at all.
Thank you.
-
Apr 1st, 2003, 11:27 PM
#2
-
Apr 2nd, 2003, 04:02 PM
#3
Good Ol' Platypus
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Apr 2nd, 2003, 07:10 PM
#4
Monday Morning Lunatic
Put the disk into another computer, or access the root partition from elsewhere. In either /etc/passwd or /etc/shadow, replace the hashed password for root with a new hash of a password you *know*. That might need to be done on another linux system though (then again, you might just need to run it through md5).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 2nd, 2003, 11:38 PM
#5
Originally posted by parksie
Put the disk into another computer, or access the root partition from elsewhere. In either /etc/passwd or /etc/shadow, replace the hashed password for root with a new hash of a password you *know*. That might need to be done on another linux system though (then again, you might just need to run it through md5).
I do have non-root accounts, but I do need the root account password.
Parksie, how do I obtain the 'hash' of a password I want to put there?
-
Apr 3rd, 2003, 03:43 AM
#6
Monday Morning Lunatic
Ok, if you have non-root accounts, with passwords you know, replace the current root password hash with that of a known password
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 3rd, 2003, 03:58 PM
#7
Good Ol' Platypus
To make a hash, do this:
Code:
echo PASSWORDTOBEHASHED | md5sum
... In a *nix environment, of course.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Apr 4th, 2003, 03:18 AM
#8
Thanks, much appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|