From owner-freebsd-questions@freebsd.org Fri Aug 21 00:03:25 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 6E7E49BF9FD for ; Fri, 21 Aug 2015 00:03:25 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.227]) by mx1.freebsd.org (Postfix) with ESMTP id 3AD181BB4 for ; Fri, 21 Aug 2015 00:03:25 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [70.121.59.224] ([70.121.59.224:65353] helo=[192.168.0.4]) by dnvrco-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 0A/A1-02123-ACA66D55; Fri, 21 Aug 2015 00:03:24 +0000 Date: Thu, 20 Aug 2015 19:03:21 -0500 From: Paul Schmehl Reply-To: Paul Schmehl To: Adam Vande More cc: Mark Felder , FreeBSD Questions Subject: Re: Problem with freebsd-update corrupting /etc/passwd Message-ID: <11E450EEAC5B5FB6EE7ACA33@Pauls-MacBook-Pro.local> In-Reply-To: References: <1440100869.935695.361630681.4EA48DB2@webmail.messagingengine.com> <0904D22E43B1B6A9D578E512@Pauls-MacBook-Pro.local> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-RR-Connecting-IP: 107.14.64.130:25 X-Authority-Analysis: v=2.1 cv=AIjuEwSE c=1 sm=1 tr=0 a=Jnt5oOXMh44BVXcArVZt4A==:117 a=Jnt5oOXMh44BVXcArVZt4A==:17 a=ayC55rCoAAAA:8 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=vEf7rrjSVTl3vYhYCQEA:9 a=QEXdDO2ut3YA:10 X-Cloudmark-Score: 0 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 00:03:25 -0000 --On August 20, 2015 at 6:34:57 PM -0500 Adam Vande More=20 wrote: > > > > On Thu, Aug 20, 2015 at 5:56 PM, Paul Schmehl > wrote: > > --On August 20, 2015 at 3:01:09 PM -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.=C2=A0 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).=C2=A0 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. > > > No.=C2=A0 The only two files I was prompted to edit were /etc/motd and > /etc/newsyslog.conf.=C2=A0 /etc/password was displayed, but it appeared = to be > fine to me, so I responded yes to the merge.=C2=A0 All it did was add the > unbound account. > > The top three lines of the file (that I renamed .bak because it was > corrupted) are: > ># cat /etc/passwd.bak ># $FreeBSD: releng/10.2/etc/master.passwd 256366 2013-10-12 06:08:18Z ># rpaulo $ ># > root:*:0:0:Charlie &:/root:/bin/csh > ># pwd_mkdb -C /etc/passwd.bak > pwd_mkdb: corrupted entry > pwd_mkdb: at line #3 > pwd_mkdb: /etc/passwd.bak: Inappropriate file type or format > > I'd be happy to send the file to someone who could analyze it. > > > > There is no need to analyze the file as line #3 is clearly = incorrect.=C2=A0 > The question is how it got into that format.=C2=A0 Do you have a = pre-upgrade > backup?=C2=A0 Yes, I do. For both servers. Why? Paul Schmehl, Retired As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell