If your linux system won't let you log in for some reason (like broken pam packages, "forgotten" root passwords, etc) this can rather quickly be fixed if your LILO prompts you before booting. Just pass init=/bin/sh as a parameter and you get a free root shell, no questions asked. Then you can for example remount your / read-write, set a new password, sync, remount and reboot.