From owner-freebsd-questions Tue Aug 22 15:20:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id PAA20050 for questions-outgoing; Tue, 22 Aug 1995 15:20:27 -0700 Received: from mrblue.cmq.qc.ca (mrblue.cmq.qc.ca [204.19.130.10]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id PAA20040 for ; Tue, 22 Aug 1995 15:20:21 -0700 Received: from cmq.qc.ca (204.19.130.21) by mrblue.cmq.qc.ca with SMTP (Apple Internet Mail Server 1.0); Tue, 22 Aug 1995 18:20:18 -0400 Date: Tue, 22 Aug 95 18:13:56 -0400 From: LPPelletier@cmq.qc.ca (Luc Pelletier) Organization: Club Macintosh de Quebec Subject: Root passwd again! To: questions@FreeBSD.org Message-ID: <2181147.ensmtp@cmq.qc.ca> Priority: normal X-Mailer: ExpressNet/SMTP v1.1.5 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: questions-owner@FreeBSD.org Precedence: bulk Hi everybody! A few days ago, I sent the following message : >I have forget my root password. What can I do to recover from that? >Is there some kind of trick? >I thought of making some special boot diskette in order to edit the password file. >Will that work? How can I make this disquette? HERE ARE THE ANSWERS I GOT : At the boot prompt, specify the "-s" flag. This will drop you into single user mode where you can change root's password to what every you want. Justin T. Gibbs ------------------------------------------------------------------------------- ---- Just boot with -s, then mount -a, then run passwd. Jaye Mathisen ------------------------------------------------------------------------------- ----- If your console was not made secure, boot single user (with the '-s' option at the FreeBSD boot prompt). Then fsck -p all your disks, mount -a and passwd. -Guido ------------------------------------------------------------------------------- ----------------------------------------------------- Try "-s" at the kernel boot prompt; that will put you in single user mode. You can then use the passwd command to fix the password. Mike Newell HERE IS MY PROBLEM STATUS ON TUESDAY AFTERNOON : At the boot: prompt, I typed -s and nothing else. The system proceed and I got to the 'Type CTRL-D for normal startup or root password for system maintenance' prompt. Remeber : I don't remember my root password! I told myself that I did something wrong. I reboot the system and, at the boot: prompt, I typed hd(0,a)/kernel -s but again I got the 'Type CTRL-D for normal startup or root password for system maintenance' prompt. QUESTION : What should I type exactly at the boot: prompt to avoid being asked for the root password and to be able to enter a new one? Thank you, thank you, thank you -Lpp