Boot into single user mode
Enter ‘linux -s’ or ‘linux single’ (without quotes) at the LILO boot prompt.
press ‘e’ at the Grub screen and then add ‘single’ to the kernel line and boot.
Now you have booted into the single user mode and have root access you can simple type ‘passwd’ at the shell prompt to change the root password. It would not even ask you for the old password before setting the new one.
Now press Ctrl+D to restart and boot as normal.
You may have guessed that how easily others can get root access to your system and can even restrict you by changing the root password. So you need to apply some additional security measures in order to prevent your system.
(i) You can password protect LILO to add a little security.
(ii) You can also disable floppy boot in your BIOS settings so that someone is not able to use a boot disk.
(iii) You can password protect your BIOS after you are finished.
Powered by ScribeFire.