
Now you won’t be prompted for the password. Kernel /vmlinuz-2.6.26-2-686 root=/dev/sda4 ro quiet single init=/bin/sh To solve this add init=/bin/sh after the word single in the bootloader. System prompts for Root passwordĮven though you added the word single some Linux Distros might prompt for the password. Now type ‘reboot’ without quotes to restart the system and enter into your normal working state with the new root password.īut wait it isn’t so easy for everyone some of you might face the following problems. Now type passwd and enter the new password You will NOT be prompted for that password and will directly be logged in as the root user.

Now select that line and press ‘b’ to boot in single user mode. Press to see the newly edited line in the options. Kernel /vmlinuz-2.6.26-2-686 root=/dev/sda4 ro quiet single Now that line should look something like this Now after a space type the words “single” without quotes. Press ‘e’ to edit the entry, from the choices that appear select the second option and press ‘e’ again to see that option editable in the command line. You’ll see a screen similar to the following Keep pressing Tab key till you see the bootloader Sometimes it may automatically boot into the default OS. After you switch on your system keep pressing key repeatedly until you see the Linux boot loader. And also tell you how to overcome certain errors you might face while doing so. I’ll outline the steps to reset root password on both redhat variants (fedora, Mandriva) and Debian (Knoppix, Ubuntu) variants. It always happens that you forget the Linux root user password and fumble about without knowing what to do. Its simple even for newbies who dread the command line. superuser password by going to single user mode.
