From owner-freebsd-questions Tue Dec 23 23:36:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA18762 for questions-outgoing; Tue, 23 Dec 1997 23:36:31 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA18757 for ; Tue, 23 Dec 1997 23:36:28 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: from shell.futuresouth.com (mail.futuresouth.com [207.141.254.21]) by shell.futuresouth.com (8.8.8/8.8.8) with SMTP id BAA07549; Wed, 24 Dec 1997 01:36:16 -0600 (CST) Date: Wed, 24 Dec 1997 01:36:15 -0600 (CST) From: "Matthew D. Fuller" To: Dean Hollister cc: grcuerrier , freebsd-questions@FreeBSD.ORG Subject: Re: Lost root password In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 24 Dec 1997, Dean Hollister wrote: > On Tue, 23 Dec 1997, grcuerrier wrote: > > > One of my techs entered a new root password, which he has forgotten. Is > > there any way a user with "wheel" access can reset the root password > > without having to redo the whole server? > > Have you tried rebooting, then at the 'boot:' prompt, type: > > -s > > This will run a root shell, and you should be able to change the root > passwd. There is a way to disable the feature, I recall it being in > rc.conf somewhere. Nope. /etc/ttys This line: console none unknown off insecure If the last field is set to secure, you can startup a root shell by booting single-user. Set to insecure, you need to enter the root password on booting single-user. On a side note, I NEVER leave console secure; that's a HUGE security hole. It's convenient when a problem like this pops up, but to be perfectly frank, HOW do you change the ROOT password by ACCIDENT??? *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*