From owner-freebsd-questions Sat Oct 17 00:05:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA05855 for freebsd-questions-outgoing; Sat, 17 Oct 1998 00:05:15 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA05850 for ; Sat, 17 Oct 1998 00:05:10 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id QAA14333; Sat, 17 Oct 1998 16:34:38 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id QAA08400; Sat, 17 Oct 1998 16:34:36 +0930 (CST) Message-ID: <19981017163435.B485@freebie.lemis.com> Date: Sat, 17 Oct 1998 16:34:35 +0930 From: Greg Lehey To: "Mr.Blue" , questions@FreeBSD.ORG Subject: Resetting the root password (was: I KILLED IT!) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Mr.Blue on Sat, Oct 17, 1998 at 02:46:03AM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 17 October 1998 at 2:46:03 +0000, Mr.Blue wrote: > To make a long story short I just changed my password and my root > password... then i lost the note book i wrote them down on.... i realized > this when it asked me for my login... so i hit the switch to boot in > single user mode thinking i could just change the root pass there then it > only mounted my root partition in read only mode... i tryed a boot floppy > but the only CD i have is for 2.2.5 and I'm running 2.2.6. can any one > help! Now you wish you had bought "The Complete FreeBSD", don't you? From the text version, If you do manage to lose the root password, all may not be lost. Reboot the machine to single user mode (see page 191), and enter: # mount -u / mount root file system read/write # passwd root change the password for root Enter new password: Enter password again: # ^D enter ctrl-D to continue with startup Note that you should explicitly state the name root: in single user mode, the system doesn't have the concept of user IDs. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message