Someday, you must be miss the root password on your computers. You don't need to panic. Keep cool. It's easy to recover the root password. Follow these steps below. You do all these on computer console, you can't do this with remotely.
Steps :
1.Reboot the machine. When linux countdown, immediately press any key until GRUB menu appear.
2.After the GRUB menu appear, press 'e' or edit, and you will see the screen like this :
root (hd0,0)
kernel /vmlinuz-2.6.27.12-78.2.8.fc9.i686 ro root=/dev/VolGroup00/Log
initrd /initrd-2.6.27.12-78.2.8.fc9.i686.img
3.Choose the second line and press 'e' or edit and you will see the screen like this :
4.Replace 'rhgb quite' with 'single', and pres 'b' or boot.
5.Wait until booting process is complete. When prompt # show up, you can change the root password.
[root@msmunir1 /]# passwd
Changing password for user root
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@msmunir1 /]#
6.Reboot the machine
[root@msmunir1 /]# reboot
This procedure can use to change another user password.
No comments:
Post a Comment