From owner-freebsd-questions@freebsd.org Fri Aug 21 03:09:53 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD8929BE6A0 for ; Fri, 21 Aug 2015 03:09:53 +0000 (UTC) (envelope-from simon@optinet.com) Received: from cobra.acceleratedweb.net (cobra-gw.acceleratedweb.net [207.99.79.37]) by mx1.freebsd.org (Postfix) with SMTP id 5E38FA8C for ; Fri, 21 Aug 2015 03:09:52 +0000 (UTC) (envelope-from simon@optinet.com) Received: (qmail 53902 invoked by uid 110); 21 Aug 2015 03:03:21 -0000 Received: from ool-6894aec3.dyn.optonline.net (HELO desktop1) (simon@optinet.com@104.148.174.195) by cobra.acceleratedweb.net with SMTP; 21 Aug 2015 03:03:21 -0000 From: "Simon" To: "FreeBSD Questions" , "Mark Felder" , "Paul Schmehl" Date: Thu, 20 Aug 2015 23:03:04 -0400 Priority: Normal X-Mailer: PMMail 2000 Professional (2.20.2717) For Windows 2000 (5.1.2600;3) In-Reply-To: <1440100869.935695.361630681.4EA48DB2@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: Problem with freebsd-update corrupting /etc/passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2015 03:09:53 -0000 On Thu, 20 Aug 2015 15:01:09 -0500, Mark Felder wrote: >On Thu, Aug 20, 2015, at 14:17, Paul Schmehl wrote: >> I just upgraded two servers from 8.4-RELEASE to 10.2-RELEASE. On both >> servers I had a problem with the /etc/passwd file after upgrade. >> >> This is what I got on both servers: >> >> # pwd_mkdb -C /etc/passwd >> pwd_mkdb: corrupted entry >> pwd_mkdb: at line #3 >> pwd_mkdb: /etc/passwd: Inappropriate file type or format >> >> On one server a single user "disappeared" (getent passwd username >> returned >> nothing). On the other server, after I replaced it with >> /etc/masster.passwd, I looped through the /etc/passwd file and getent >> returned each entry, so no users "disappeared". >> >> Not sure what the problem might be, but I thought y'all should know. >> >During the upgrade did it ask you to merge some config files (passwd >included) ? That's the only time it would do so. Corruption on line #3 >makes me think it was trying to make you manually merge the FreeBSD ID / >timestamp at the top of the file. Unless something went wrong, it would ask, I bet that's where his corruption comes from. When I did 8.4->10.1-R upgrade using freebsd-update, it would ask me to merge both /etc/passwd and /etc/master.passwd manually He should look at /etc/passwd to see what's on line 3 and fix it :) -Simon