In Linux, if you forget the root password, you can recover it in this way:
- Reboot the machine, at grub menu, edit the boot entry for Linux
- press 'e' to to edit the entry,
append " single" at the end of the kernel line
alternatively, you can also append " init=/bin/sh" at the end of the kernel line - press 'b' to boot Linux into single user mode
- now you will be able to log in the system without entering password
- type 'passwd' to reset root password
No comments:
Post a Comment