note:- I AM SHOWING UBUNTU 10.11
1 Reboot your computer, and then as soon as you see the GRUB Loading screen, make sure to hit the ESC key so that you can get to the menu.
its look like this
2 Then press 'e'
3 You’ll want to remove the “ro quiet splash” part with the backspace key, and then add this onto the end:
I highlighted here
5 Then simply type cd /home then its says "root@(none):/home#"
6 Now type "ls" and press enter this will show you the user name of system like this
7 now u have to do is type passwd <username> example in here its like passwd way2h then press enter now its tell us to enter new password for given user simply type two times and done :)
NOTE:- after u done this type reboot –f I found that the –f parameter was necessary to get the reboot command to work for some reason. You could always hardware reset instead, but make sure to use the sync command first.
ONLY FOR YOUR INFORMATION