To recover root password in debian:
1. Reboot the
Machine and wait for loading the GRUB menu.
2. Select
“single user mode”
from the menu and press “e”
from the keyboard.
3. Select
“kernel” line from the
menu and press “e”
from the keyboard.
4. At the end of
the line type: init=/bin/sh and
press “enter”.
5. While
selecting “kernel”
line press “b”
from the keyboard.
6. After
booting type the following: mount –o
remount, rw /
7. Now type
“passwd” command and
choose your password.
8. Reboot your server.
I use this way. It is more easy for me.
ReplyDeleteTo recover root password in debian:
1. Reboot the Machine and wait for loading the GRUB menu.
2. Select “single user mode” from the menu and press “e” from the keyboard.
3. Select “kernel” line from the menu and press “e” from the keyboard.
4. At the end of the line ro quote type: rw init=/bin/bash and press “enter”.
5. While selecting “kernel” line press “b” from the keyboard.
6. Now type “passwd” command and choose your password.
7. Reboot your server.