Sunday, July 4, 2010

I'm losing my root password

The title says it all. So bad. I don't want to run the installation again because i need all the data. It is become worst from the previous installation there is only one user which is root! So you need just root password to gain access to the systems.

My systems is RedHAt ES 5. In order to achieve my goal to get into this systems is try to run this machine using linux single mode. Follow the steps below :-

- To boot into single-user mode from GRUB, do the following from
the GRUB menu screen:

1. Select the desired kernel.

2. Press the 'e' key to edit that entry.

3. Use the arrow keys to navigate to the kernel line
(for example: kernel /vmlinuz-2.6.x-x ro root=/dev/hdx2)

4. Press the 'e' key to edit the line.

5. Add the argument 'single' to the end of the line and
press return.

6. Press the 'b' key to boot.

If everything goes well, you'll be able to issue the "passwd" command at the prompt and you'll be asked to make a new password.

NOte :- If you are using LILO, at the LILO boot prompt (if you are using the graphical LILO, you must press [Ctrl]-[x] to exit the graphical screen and go to the boot: prompt) type:

linux single

That's it! :D

0 comments:

Post a Comment