From owner-freebsd-questions Fri Apr 19 20:20:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from webs1.accretive-networks.net (webs1.accretive-networks.net [207.246.154.13]) by hub.freebsd.org (Postfix) with ESMTP id 9CD2937B417 for ; Fri, 19 Apr 2002 20:20:46 -0700 (PDT) Received: from localhost (jesse@localhost) by webs1.accretive-networks.net (8.11.1/8.11.3) with ESMTP id g3K3Kgc10531; Fri, 19 Apr 2002 20:20:42 -0700 (PDT) Date: Fri, 19 Apr 2002 20:20:42 -0700 (PDT) From: Jesse Rock X-X-Sender: To: Annelise Anderson Cc: Doug Reynolds , "freebsd-questions@FreeBSD.ORG" Subject: Re: emergency password problem In-Reply-To: Message-ID: <20020419201726.E10509-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I ended up mounting the disk with another installation and editing /etc/ttys. Thank you for all your help. ______________________________________________________________________________ Jesse J. Rock Accretive Technology Group Network Operations www.accretive-networks.net Seattle,Washington jesse@accretive-networks.net "Eschew Obfuscation" On Thu, 18 Apr 2002, Annelise Anderson wrote: > On Thu, 18 Apr 2002, Doug Reynolds wrote: > > > On Thu, 18 Apr 2002 00:22:16 -0700 (PDT), Annelise Anderson wrote: > > > > >But....you could pop another drive in there, put even a minimal > > >FreeBSD installation on it, and then mount the partitions on > > >the existing drives, and fix /etc/master.passwd. The problem is > > >getting a password database; one way to do it would be to edit it, > > >(the version on the old installation), deleting the root password entry; > > >(but not the root account); copy it to the new /etc (after having backed > > >up the master.passwd on the new installation), and use vipw on the new > > >installation to get the password database rebuilt (with all the same > > >users but no password for root), copy all the relevant files over the > > >ones on the old installation....and reboot the old installation. > > > > > >Think about those steps--I haven't actualy done this. > > > > I _think_ that could be possible by using the fixit floppy too couldn't > > it? > > Yes, once you get the hard drive partition mounted. I think you > would do it using vipw -d /path/to/hardrive/etc > > >From man vipw: > > When run without options, vipw will work with the password files in /etc. > The -d option may be used to specify an alternative directory to work > with. > > pwd_mkdb has the same option (surprise!) > > I find the fixit floppy/cd harder to work with than another installation > of FreeBSD. A picobsd floppy could also be used, although you might in > that case have to call vipw from the hard drive, wherever it's located > after you mount the file systems. > > What I learned from this is that a machine that isn't physically > secure isn't secure even if you require a password at the console. Not > that that's really news, though. > > Annelise > -- > Annelise Anderson > Author of: FreeBSD: An Open-Source Operating System for Your PC > Available from: BSDmall.com and amazon.com > Book Website: http://www.bittreepress.com/FreeBSD/introbook/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message