From owner-freebsd-current@FreeBSD.ORG Mon Jun 23 16:44:16 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E69537B401 for ; Mon, 23 Jun 2003 16:44:16 -0700 (PDT) Received: from tomts24-srv.bellnexxia.net (tomts24-srv.bellnexxia.net [209.226.175.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id E446B43F75 for ; Mon, 23 Jun 2003 16:44:14 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca ([65.95.177.176]) by tomts24-srv.bellnexxia.netESMTP <20030623234409.JCHR17571.tomts24-srv.bellnexxia.net@gabby.gsicomp.on.ca>; Mon, 23 Jun 2003 19:44:09 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.6/8.12.6) with SMTP id h5NNdGmK039521; Mon, 23 Jun 2003 19:39:16 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001901c339e1$3c2db880$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "David Syphers" , References: Date: Mon, 23 Jun 2003 19:43:23 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: transferring data (after losing all non-root logins) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2003 23:44:16 -0000 > I recently forgot my root password, rebooted single-user and changed it, > and immediately afterwards the computer denied the existence of any > non-root users (home directories still there for those that had them, > they still have login shells, etc.). This was the only change made to > the system. This is a -current system from late April that was in storage > for a while. I was planning on wiping this system to install 5.1-R anyway, > but I need to back up the data first. I can't burn a CD because I didn't > have mkisofs installed and can't install it (no man user), I can't run > sshd (no ssh user), and I can't figure out how to make telnet allow root > logins (I know, a Very Bad Idea(tm) usually, but it's not a security issue > when I'm allowing it from one IP for 5 minutes and will be changing > passwords anyway). > > So... I'm think of trying to find another hard drive, to install that and > transfer the data. Does anyone have any other ideas? Well, it really sounds like your password database got got hosed. Does /etc/master.passwd have entries for all of your non-root users? If so, then probably all you need to do is regenerate your password database. The easiest way to do this is run "vipw", make some kind of change (and undo the change -- this is just so it thinks the file has been changed) and exit. Your password database will be regenerated. -- Matt Emmerton