Home > Archive > Linux/Unix > August 2002 > Forgot root password: need to recover





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Forgot root password: need to recover
alany

2002-08-24, 12:21 pm

I forgot my "root" password and wanted to know to recover it. I've successfully recovered root password from my FreeBSD machine before. Any advice is appreciated.
Mr. Linux Guy

2002-08-24, 3:47 pm

quote:
Originally posted by alany
I forgot my "root" password and wanted to know to recover it. I've successfully recovered root password from my FreeBSD machine before. Any advice is appreciated.


Boot into single user mode or use a boot floppy. Then issue the 'passwd' command to reset your password. Deleting the password field in the /etc/shadow and /etc/passwd files will also set the password to null and you will be able to log on without one.
alany

2002-08-24, 10:56 pm

Just curious... how do you boot into a "single mode"? Lilo comes up at the boot prompt on my machine.
Mr. Linux Guy

2002-08-24, 11:21 pm

There are several ways. First of all, at the lilo prompt, you should be able to type "single" and it should work. LILO also allows you to pass these parameter right at the LILO prompt. Type the name of the image you want to boot followed by the options that you
want to pass to the kernel.

LILO: linux single

If that doesn't do it, then try "/sbin/init 1" to get into single boot mode.

If that don't work, alter your bBIOS to boot from floppy and boot up using a rescue disk (available on the net).

Lemme know if this does not work.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2009 examnotes.net