Search This Blog

Showing posts with label linux root password. Show all posts
Showing posts with label linux root password. Show all posts

Tuesday, March 6, 2012

How reset forgotten root password in Linux!!


How reset forgotten root password in Linux!!

Follow below mention method:-

1:- Reset the Linux box.

2:- When it restart and If you use the default boot loader, GRUB.At the boot loader 
menu, use the arrow keys to highlight the installation you want to edit.

3:- After that press "a" to enter into append mode.

4:-Now, edit the line look like -
grub append> ro root=LABEL=/ single or s

5:- Press Enter to boot, now Linux box will boot in single mode.

6:-Shell will come like:-
sh-2.05b# 

7:- Type here-
sh-2.05b#passwd root

8:- Then it will ask for new password then re-type again password.

9:- Then type "reboot" to reboot the Box.

Cheers! Now you have changed the password