From owner-freebsd-questions@freebsd.org Thu Aug 20 20:01:10 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 5E6CC9BFC2E for ; Thu, 20 Aug 2015 20:01:10 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 353F413BE for ; Thu, 20 Aug 2015 20:01:10 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 607E420ACC for ; Thu, 20 Aug 2015 16:01:09 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute6.internal (MEProxy); Thu, 20 Aug 2015 16:01:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=5qNrihvr7LCI+eX x4BV/kkkfhpU=; b=KTeo4aJdw+ztPnO5jcs2klLEYPlSqaPqjY5pMFI6i8DeQ5X YCEtE4tdoyObD1mg+4x6ncstZ1wYSZtJVlKaQ2k9+Ez3ER9I0owEp6UYumnEPELJ VeMONtmjEn1og2QTs1fjarvmySpX/hbkFjrL1X0VwrHdPxF05c6tDFWXCDW8= Received: by web3.nyi.internal (Postfix, from userid 99) id 40D45103D41; Thu, 20 Aug 2015 16:01:09 -0400 (EDT) Message-Id: <1440100869.935695.361630681.4EA48DB2@webmail.messagingengine.com> X-Sasl-Enc: laGfwOaO6sX+pRMqGtHqAo5rKZ36lOYIjob/iuIx1tTp 1440100869 From: Mark Felder To: Paul Schmehl , FreeBSD Questions MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-4fee8ba5 Subject: Re: Problem with freebsd-update corrupting /etc/passwd Date: Thu, 20 Aug 2015 15:01:09 -0500 In-Reply-To: References: 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: Thu, 20 Aug 2015 20:01:10 -0000 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.