if you have locked your root account, while on booting, do the following
1) select the distro name in the grub list
2) type 'e' to edit
3) select the line with kernel *
4) type 'e' to edit again
5) add a string 'single' or numeral 1 to end of string and type 'b'
Now your system will boot in single user mode and will not ask password.
it could have been better if you mentioned your distro.
Comment