There is no such thing as 'default' root password in (to my knowledge) any Linux distribution.
What you can do, is to boot a 'live' CD, mount your root filesystem, and edit /etc/shadow. The first line of it looks like this:
- Code: Select all
root:$1$.mQp/2pK$JPbCEiU.sWxSOiDWuqQfD.:12584:0:99999:7:::
The garbage between the 'root:' and the next colon is the password. Remove it, so you may end up with this line:
- Code: Select all
root::12584:0:99999:7:::
After this, you can log in as root with no password.
Also, if you don't have a live CD, add the 'init=/bin/bash' boot parameter to the kernel image you want to start at the LILO (or GRUB) prompt. After you got the prompt, enter this line:
- Code: Select all
mount -n -o remount,rw /
After this, you can edit /etc/shadow as previously mentioned.
If your LILO or GRUB is password protected, and you forgot this password, too, then only the live CD boot can help you.
Note that in order to avoid such surprises, you should install the 'sudo' package, with which you can grant root privileges to any user. This way, the user needs to know only his/her password in order to become root. If you had added yourself to sudoers, you weren't in such situation. See the man page of sudo and sudoers for more info.