What happen if you forgot your GNU/Linux root password?
Worry? ah....
Ok. I'm going to describe a method which can be helpful to you. I have tested this method in my Linux OS (debian 6.0 ).
Here what you need to do, first of all, make sure what is the boot loader you are using. You can check it easily by reading the name when your PC boots. If your boot loader is LILO then this method is not for you. If your boot loader is GRUB .............
Follow these easy steps. Unfortunately, I don't have any screen shot. Because of that I have used one screen shot from the internet.
Examine the screen shot at the end of this post.
1. Reboot the PC and press arrow keys when the boot loader appear.
1. Reboot the PC and press arrow keys when the boot loader appear.
2. Select the OS and press 'e'
3. Select the kernel mode. You can find this in the top of the list. I can give a phrase. "linux /boot/vmlinuz ". Try to find that line.
FYI : vmlinuz is the name of the Linux kernel executable.
4. To edit that line, press 'e' again. For Grub V1.9+, you don't need to do that.
5. Now go to the end of the line by hitting 'End' key. Type the following path to initialization after a space.
init=/bin/bash6. Now exit from the edit mode and press 'b' to boot. For Grub V1.9+ use Ctrl+x
7. After the system boots type following in the command prompt.
#mount -o remount, rw /
#passwd
#sync
#mount -o remount, ro /
#reboot
8. Thatz it. Hopefully, this method will work for your system. However, I can't grantee.













