Header Ads

forgot my linux root password

hex dump (with hd ) of boot0 MBR loader of Fre...

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.

2 comments:

  1. Whoops. Dont you just hate it when that happens.

    JT
    www.FireMe.To/udi

    ReplyDelete
  2. That is why I post it here. so that everybody can make reference.

    ReplyDelete

Terima kasih.