Wednesday, March 18, 2009

Did you know : 1. Changing a Linux root password

Did you know that you can change the root password in Single user or maintenance mode.

This is how it is do.

Restart the pc with linux installed until you reach your Grub or LILO screen.

Type in : linux single

This will boot you in to the single user setup were you will be logged in directly.

Now type in: passwd

And you can change your root password

Here is the method for GRUB

(1) At grub boot screen (after restart)

(2) Select the kernel

(3) Press the e key to edit the entry

(4) Select second line (the line starting with the word kernel)



(5) Press the e key to edit kernel entry so that you can append single user mode

(6) Append the letter S (or word Single) to the end of the (kernel) line





(7) Press ENTER key

(8) Now press the b key to boot the Linux kernel into single user mode

(9) When prompted give root password and you be allowed to login into single user mode.

No comments: