Quantcast
Viewing latest article 14
Browse Latest Browse All 20

To Recover Root Password in Linux

1. Restart the PC while restarting press any key to get Grub Screen
2. Press 'e'
3. Select kernal /vmlinuz-2.6.18.-8.el5 ro root=LABEL=/ rhgb quiet
4. Again Press 'e' to edit
5. Edit kernal /vmlinuz-2.6.18.-8.el5 ro root=/ rhgb quiet line and erase quite and type single
6. Press enter
7. Press b to boot
8. At shell prompt type the commands

sh-3.00# passwd
Changing Password for user root
New UNIX Password:123456
Retype new UNIX Password: 123456
Passwd: all authentication tokens updated Successfully.

Now type the following command to Restart the system to the normal Login

sh-3.00# init 6

Viewing latest article 14
Browse Latest Browse All 20

Trending Articles