Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 1997 09:17:17 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Alejandro Galindo <agalindo@fvilla.secyd-dgo.gob.mx>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: lost password
Message-ID:  <19970819091717.52988@lemis.com>
In-Reply-To: <1.5.4.32.19970818162901.006667f8@fvilla.secyd-dgo.gob.mx>; from Alejandro Galindo on Mon, Aug 18, 1997 at 04:29:01PM %2B0000
References:  <1.5.4.32.19970818162901.006667f8@fvilla.secyd-dgo.gob.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 18, 1997 at 04:29:01PM +0000, Alejandro Galindo wrote:
>         Hi.
>
>         I was chanched the root password and i lost the new password, but i
> have the encrypted data passwords (twice, the last and the new), how can i
> recover the password (not encrypted) is there any utility for this?. My box
> is a FreeBSD 2.1.5 from Walnut Creek CDROM and the crypt metod is
>         MD5.

You can't, at least not easily.  Reboot your machine.  When the
'Boot:' prompt appears, type in -s.  The system startup will be
interrupted as soon as the device probes have been completed, and you
will be prompted for a shell.  Always choose sh: some other shells,
notably bash, get confused in single user mode. Only the root file
system will be accessible, and it will be mounted read-only.  The
reason for this is that the file system may be damaged and require
repair before you can write to it.

For example,

npx0 on motherboard
npx0: INT 16 interface			(end of the probes (high intensity display))
Enter pathname of shell or RETURN for sh:  (hit RETURN)
erase ^H, kill ^U, intr ^C
# mount -u /				(mount root read/write)
# passwd				(Change your password here)
# ^D					(enter control-D to continue startup)

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970819091717.52988>