LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   forgot root password (https://www.linuxquestions.org/questions/linux-newbie-8/forgot-root-password-104620/)

samik_ban 10-16-2003 06:11 AM

forgot root password
 
I have forgot my root password. Suggest me how can I retrieve this password. If it is not possible then suggest me how can I retrieve all my data.

atko 10-16-2003 06:20 AM

If I can recall correctly rebuilding your pc - when you are setting up your partitions - gives you the option to use the existing home directory.

UltimaGuy 10-16-2003 06:44 AM

What do you use as boot manager, is it grub or lilo.

First consider lilo...

1. When lilo shows the graphical screen, press Ctrl+x, and go to terminal mode.
2. Enter linux S, where linux is the label
3. You will be booted into single user mode now. Type passwd and type in your new root password.

Now, we shall see grub...

1. When grub shows the graphical boot, press the option to edit( I think it is 'e')
2. In the second line of the three lines, add "init 1" at the END.(At the end of the line, append init 1. If you add it somewhere else, the system won't boot)
3. You are booted into single user mode. Change the password.

That's all folks!

porous 10-16-2003 07:34 AM

will it work on grub which is password protected ,
or is there any other way :)


All times are GMT -5. The time now is 05:07 AM.