1. Firstly reboot server.
2. Since the server I inherit has GRUB, wait until the grub splash screen comes on and Press the letter ‘e’ on your keyboard. This will stop grub.
3. Press ‘e’ again and this will take you to another screen
4. You should see one of the choices has “kernel” choose the one with “kernel
5. Press ‘e’ on your keyboard
6. Type ‘single’ and hit enter. Then enter ‘b’ to boot.
7. Your system should boot up in single mode as root
8. You are logged in single mode you can replace the root password by sending this command:
Code:
passwd
9. After you have changed the root password, restart server and you should be able to login with the new password.
DONE
LILO —————————-
1. If you have LILO, it is different, fist reboots server and when you see the LILO: prompt type “Linux single” and press enter. This will log you in as root in single user mode.
2. Once booting is done, you can change your password with this command:
Code:
passwd
And restart server.