From owner-freebsd-questions Mon Aug 18 16:47:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id QAA25733 for questions-outgoing; Mon, 18 Aug 1997 16:47:55 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id QAA25728 for ; Mon, 18 Aug 1997 16:47:52 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id JAA22517; Tue, 19 Aug 1997 09:47:18 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id JAA12682; Tue, 19 Aug 1997 09:17:17 +0930 (CST) Message-ID: <19970819091717.52988@lemis.com> Date: Tue, 19 Aug 1997 09:17:17 +0930 From: Greg Lehey To: Alejandro Galindo Cc: freebsd-questions@FreeBSD.ORG Subject: Re: lost password References: <1.5.4.32.19970818162901.006667f8@fvilla.secyd-dgo.gob.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e 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 +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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