News Register Control Panel Private Messages Members List Team Search News Posts About Us
 

Forgot your root password?
  Author: Ravish Ahuja
Added: 11/21/2002
Type: Tutorial
Viewed: 3047 time(s)
Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10Average visitor rating of 8.9/10
Boot into single user mode

You have have root access to your system without even loging in by booting into single user mode. You can do so by a simple command at boot loader. Here is how to do that in the most popular boot loaders LILO and GRUB. You can also use a linux boot disk similarly if you are not using a boot loader.

LILO
Just enter 'linux -s' or 'linux single' (without quotes) at the LILO boot prompt.

GRUB
Hit 'e' at the Grub screen and then add 'single' to the kernel line and boot.

Now you have booted into the single user mode and have root access you can simple type 'passwd' at the shell prompt to change the root password. It would not even ask you for the old password before setting the new one.
Now press Ctrl+D to restart and boot as normal.


Article Pages:  1 | 2 | Next �  


How would you rate this article:    Bad Good   Go � 


� Copyright Linux Advisory 2003. All rights reserved.
We are not responsible for the comment and story contributed by users.