From owner-freebsd-questions Wed Jun 26 19:52:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by hub.freebsd.org (Postfix) with ESMTP id 5C49D37B409 for ; Wed, 26 Jun 2002 19:52:42 -0700 (PDT) Received: from daleco [12.145.226.105] by mail.gbronline.com (SMTPD32-7.10) id ADA12FD6006E; Wed, 26 Jun 2002 21:51:13 -0500 Message-ID: <01e101c21d85$a680a5e0$69e2910c@fbccarthage.com> From: "Kevin Kinsey, DaleCo, S.P." To: "Kirk R.Wythers" , References: <02062616543500.01286@truffula.localdomain> Subject: Re: 4.5 - >4.6 stable, lost users and passwords Date: Wed, 26 Jun 2002 21:52:17 -0500 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 ----- Original Message ----- From: "Kirk R.Wythers" To: Sent: Wednesday, June 26, 2002 4:54 PM Subject: 4.5 - >4.6 stable, lost users and passwords >I just did the whole cvsup, make world, mergemaster thing... So far as I can >tell, all of my user files in ~/ are there (single user workstation), but I >my username is not recognized, and I can't su to root. If I login as root, no >password is required. I'm not at the machine in question right now, but as I >am writing this it seems as if the password file is gone (I may have messed >up with mergemaster). Sounds near definite. This happened to me recently. I hope you have a backup of /etc handy. Near as I can tell, I got confused as to which file was 'temp' and which the 'current..." Took about 2 hours that should have gone elsewhere. If you can login as any user, you're better off than I was. I happened to have several copies of /etc lying around however. >Any ideas as to recovery? Get console!! #boot -s #fsck -p #mount -t ufs /dev/yourdisksliceforroot / #mount -t ufs /dev/yourdisksliceforusr /usr #mount -t ufs /dev/yourdisksliceforvar /var Since you're in single user mode, path will probably not be set, so mount may equal /sbin/mount and fsck may be /sbin/fsck, & c. Find that backup of /etc !! #cp passwd /etc/ #pwd_mkdb >Thanks a ton, Of what? :-) >Kirk HTH, regards... KDK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message