I forgot the root password on my linux machine

Linux basic commands FAQ

Simple tasks for simple minds🙂

The “forgotten root password”

Q. I forgot the root password on my linux machine. How do I change the password ?

R. The easiest way to change the “forgotten root password” is to boot your Linux machine in the single-user mode, namely at the “lilo”prompt, during the bootup you will type:

linux single

This will log you in as “root” without asking for a password. As root, you may now change the root password using passwd command ( the old password is not required ):

passwd

If this seems to you insecure or to simple to be true, that is because no computer system is realy secure if other people have physical access to the computer hardware.

There is a way to secure the lilo boot, but this will be the subject for another article.

Tags:

One Response to “I forgot the root password on my linux machine”

  1. rohit Says:

    i am satisfied

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: