Knoppix ccame come to rescue at such times... Boot knoppix, mount the hard drives, edit /etc/shadow, remove the encrypted passwd in ur line... Reboot after taking out ur CD.
If you have forgot the root password for ur system then its a little bit of head ache but dont worry you can still get to change the new password. If you are using RedHat Linux then just do the following steps.
-- ********************************************************** * Never say die unless you are dead ! * * .oooO * * ( ) Oooo. Only those who will risk going too far * * \ ( ( ) Can possibly find out how far one can go!* * _) ) / * * (_/ http://www.it.iitb.ac.in/~akhilesh/ * **********************************************************