How to change the root password in Linux!


What will happen if you lose your password for “root”,since “root” is the God of LINUX ?You will never get it back but you can reset the password easily. For that, you have to boot in single user mode,it depends on your boot loader.

  1. Grub : Select the Linux system you want from the graphical menu and then press ‘e’,you will find yourself in a mini editor,there you can make changes in boot commands.Move the cursor to end of the boot command line,add a space there and either a “1″ or word “single”.Then enter press Enter and ‘ b’ to boot this line.
  2. Lilo : Hit any key but Enter at the boot menu.If that take to a command prompt type linux single and press Enter boot system again.

Now your password is set to blank which is dangerous so don’t forget to reset it again.

I have tested it with Linux versions like Redhat ,Fedora core and Knopix.But many new versions like SUSE wont let you start with out providing root password, for more details .

Related posts:

  1. What is the difference between su & sudo
  2. Linux Run Levels Defined!
  3. Create easy to remember and strong password!
  4. Windows Vs Linux – Which one is better?
  5. What to do when you forget email password!
This entry was posted in Blogging Tips. Bookmark the permalink.

2 Responses to How to change the root password in Linux!

  1. Pingback: GadgetGadget.info - Gadgets on the web » How to change the root password in Linux!

  2. Nirmal says:

    I have not used Linux much, but now planning to install a new version coming week.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>