I have forgot a root password
|
|
mcreactor
Newbie
|
19. December 2009 @ 13:28 |
Link to this message
|
Hi! I have a problem. I have forgot a root password in RedHat linux. What i can do? Is where any methods to take this password? I haven't any rights and permissions now... it's a painfully.... :)
I know that Linux is a very protected system. But i've directly access to the computer. May be I can doing everything?
I use Red Hat Linux (2.4.20-8smp) - it is an item of kernel loader. I thanks for a God, I remember a user password.
Please help me If you can! Thanks!
Computers and SeX!
|
Advertisement
|
|
|
Senior Member
|
19. December 2009 @ 15:50 |
Link to this message
|
The easiest thing to do is boot into single user mode.
http://www.redhat.com/docs/manuals/linux...ing-single.html
This will boot the system as root without having to enter a password. after it boots you can use this command to change the password
"passwd root"
you have now reset the password and have full access to the system. If you cannot access single user mod you could load up any linux live cd and mount your hard drive. Then you can edit the "/etc/group" file and add your user to the adm group or any groups that you need permissions in.
GAMING COMPUTER - Intel q9550 @ 3.4ghz | EVGA GTX 260 core 216 | Gigabyte ds3l | 6gb Gskill DDR2 800 ram | Silverstone 700 watt psu | WD 640gb hdd | Seagate 300gb hdd | LG dvd burner | Samsung dvd burner | Antec p182 case | logitech 2.1 speakers | logitech g11 keyboard | Samsung 25.5in 1900x1200 monitor | 19in 1440x900 secondary monitor | Windows 7 64bit | SERVER - Gigabyte 785g motherboard | AMD Phenom 9650 | 6gb ram | three 1.5tb hdd | Seagate 1tb hdd | WD 750gb hdd | two 300gb hdd | Maxtor 200gb hdd | Ark rackmount case | CentOS 5.5
Steam name = "krj15489" alias = Jordan-k
|
Senior Member
2 product reviews
|
28. December 2009 @ 14:52 |
Link to this message
|
|
Senior Member
|
28. December 2009 @ 15:08 |
Link to this message
|
Originally posted by grkblood: i find this option much easier. just set the password to NULL
http://pogostick.net/~pnh/ntpasswd/
That would work great if he were running windows, but this will not work on linux.
GAMING COMPUTER - Intel q9550 @ 3.4ghz | EVGA GTX 260 core 216 | Gigabyte ds3l | 6gb Gskill DDR2 800 ram | Silverstone 700 watt psu | WD 640gb hdd | Seagate 300gb hdd | LG dvd burner | Samsung dvd burner | Antec p182 case | logitech 2.1 speakers | logitech g11 keyboard | Samsung 25.5in 1900x1200 monitor | 19in 1440x900 secondary monitor | Windows 7 64bit | SERVER - Gigabyte 785g motherboard | AMD Phenom 9650 | 6gb ram | three 1.5tb hdd | Seagate 1tb hdd | WD 750gb hdd | two 300gb hdd | Maxtor 200gb hdd | Ark rackmount case | CentOS 5.5
Steam name = "krj15489" alias = Jordan-k
|
Senior Member
2 product reviews
|
30. December 2009 @ 09:24 |
Link to this message
|
Originally posted by krj15489: Originally posted by grkblood: i find this option much easier. just set the password to NULL
http://pogostick.net/~pnh/ntpasswd/
That would work great if he were running windows, but this will not work on linux.
no, it will run on linux. ive doen it several times. dont be fooled by the name. it does work. and it works great.
|
scum101
Suspended due to non-functional email address
|
7. January 2010 @ 07:58 |
Link to this message
|
not on a modern linux system with shadow and encrypted root passwords it doesn't.. unix skills needed..
that program can be run in a linux boot shell to give access to windows passwords (not hard to bypass anyway.. childs play) but to restore or change a unix style password either some high end hackers/sys admin know how is needed.. or as K said.. single user mode and hope the security was set to allow root access from that mode.. a high security server setup will not allow any straight terminal/console login that way, requiring a valid user login first then a console switch and login as single user mode2
Use a live cd to edit the grub files to gain single user access is probably the easiest way around a lost linux root p/word.
|
Moderator
|
7. January 2010 @ 09:12 |
Link to this message
|
I seem to keep bumping into you today.
I'm certainly no hacker, but this thread reminded me that there's even a way to reset the root password on Enterprise servers, well as long as the server is physically accessible that is. Luckily servers such as this are kept locked away from little fingers.
http://sunsolarisadmin.blogspot.com/2007...ord-in-sun.html
I have never bothered to try that as i don't ever forget passwords :), was just passing thru and couldn't resist.
Main PC ~ Intel C2Q Q6600 (G0 Stepping)/Gigabyte GA-EP45-DS3/2GB Crucial Ballistix PC2-8500/Zalman CNPS9700/Antec 900/Corsair HX 620W
Network ~ DD-WRT ~ 2node WDS-WPA2/AES ~ Buffalo WHR-G54S. 3node WPA2/AES ~ WRT54GS v6 (inc. WEP BSSID), WRT54G v2, WRT54G2 v1. *** Forum Rules ***
|
Advertisement
|
|
|
scum101
Suspended due to non-functional email address
|
7. January 2010 @ 09:34 |
Link to this message
|
hehehe.. those of us in the know don't tend to give out info on the internet that is contained in that groaning shelf of dusty unix books we have for "reference purposes"
Ask a lad in the mac forums how quick I got round his "found system in back street-no password" situation without using any boot disks or anything.. it was an old g3 so of no value so.. hehehehehe
Usually what I do with these threads is fire a pm and ask a couple of interesting and revealing questions.. and depending on the answer I either get them where they want to be.. or stfu rapidly... BOFH I is.. :)
of course our OP could always fire up in single user mode and do an rm -rf and then set a new password next time.. to something they CAN remember...
|