Linux basic commands FAQ
Simple tasks for simple minds 🙂
The “forgotten root password”
Q. I forgot the root password on my linux machine. How do I change the password ?
R. The easiest way to change the “forgotten root password” is to boot your Linux machine in the single-user mode, namely at the “lilo”prompt, during the bootup you will type:
This will log you in as “root” without asking for a password. As root, you may now change the root password using passwd command ( the old password is not required ):
If this seems to you insecure or to simple to be true, that is because no computer system is realy secure if other people have physical access to the computer hardware.
There is a way to secure the lilo boot, but this will be the subject for another article.