From owner-freebsd-questions Mon Sep 7 10:18:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA00663 for freebsd-questions-outgoing; Mon, 7 Sep 1998 10:18:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA00643 for ; Mon, 7 Sep 1998 10:18:49 -0700 (PDT) (envelope-from rdg@theleys.cambs.sch.uk) Received: from [194.222.64.103] (helo=hydrogen.theleys.cambs.sch.uk) by post.mail.demon.net with esmtp (Exim 2.02 #1) id 0zG4vo-0004jt-00 for freebsd-questions@freebsd.org; Mon, 7 Sep 1998 17:18:25 +0000 Received: from barium.theleys.cambs.sch.uk (barium.theleys.cambs.sch.uk [10.0.1.56]) by hydrogen.theleys.cambs.sch.uk (8.7.5/8.7.3) with SMTP id SAA01097 for ; Mon, 7 Sep 1998 18:18:18 +0100 (BST) Date: Mon, 07 Sep 1998 18:17:24 +0000 (GMT) From: Dr R D Gidden Subject: Invalid master.passwd file To: freebsd-questions@FreeBSD.ORG Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1 X-Organization: The Leys School, Cambridge, CB2 2AD, U.K. X-Mailer: ANT RISCOS Marcel [ver 1.08] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ****** (NOTE this is not my usual freebsd-questions address please would you CC any reply to the address below as well as to the list. Thanks!) ****** I've done something stupid while running adduser which has left /etc/master.passwd looking like /etc/passwd, ie with a single * in the password field instead of the encrypted gobbledegook. The system still requires the correct passwords for users to logon, so I suppose the hashed .db files are still OK, but I get pwd_mkdb: corrupted entry pwd_mkdb: at line #1 pwd_mkdb: /etc/master.passwd: Inappropriate file type or format [the 'line 1' presumably refers to the entry for root whic is also just one asterisk] vipw runs, but merely shows the single asterisk lines. I have not tried to edit it with vipw yet. I have over 700 users in this file (AARGH!): is it possible to work back from the .db file(s)? My backup was just *before* a whole slew of new users were added :-(( Thanks for any help! Bob. -- rdg@theleys.cambs.sch.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message