23
May
How to retrieve root password
There’re 2 ways to solve this problem.
1st way
Reboot your linux machine
Get into “grub” menu then press “e”
Go to your default kernel then press “e” again
Then go to grub promp grub> default_kernel single <– type “single” at the end of your kernel. We are entering single mode.
Then it will appear as sh-3.00#
Then type “passwd” or edit /etc/passwd
2nd way
Reboot your linux machine
Boot from 1st CD of your distro
Get into the “Rescue Mode”
Follow the instruction
We get into prompt again sh-3.00#
Type “sh-3.00# chroot /mnt/sysimage”
Then type passwd or anything you want
Congratulations you have your root password back. Don’t forget about your root password again in the future
0 Comments