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!
The easiest thing to do is boot into single user mode. http://www.redhat.com/docs/manuals/...ustom-guide/s1-rescuemode-booting-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.
no, it will run on linux. ive doen it several times. dont be fooled by the name. it does work. and it works great.
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.
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/03/how-to-reset-root-password-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.
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...