From owner-freebsd-questions@freebsd.org Fri Aug 21 02:39:18 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 11E9E9BE05C for ; Fri, 21 Aug 2015 02:39:18 +0000 (UTC) (envelope-from paul.j.smith0@gmail.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5CB416AF; Fri, 21 Aug 2015 02:39:17 +0000 (UTC) (envelope-from paul.j.smith0@gmail.com) Received: by oiew67 with SMTP id w67so34385937oie.2; Thu, 20 Aug 2015 19:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DFS4qpRVlXb4bGsJzzyqe7xpfhlhF5DS7mm8avZZrAA=; b=x7oa0i6NORuQ8WW7dnIUnWmVV4C8joF650ETQvpQD6UmFOIGoqL5+FGwtyd1Is6Zxi OZpEOFysDaad8CPDuqiarmvYsRbDpPX9EOJGLu7bExRA2hoFM1+cyz2HC5aWw8wKk+4Q 5sEwlZ00oWK7cHT8+4ibw5m0c2HMErhKHRZlj59U2SxbHZKX57fP2fqNH/X+BiTbigHA CrVZV782KDLBJPp74HRecPpEizILC9HBkofZtGLMvqlovMZZUVFVMRFMmT6wFnNmlGB/ SJ7lXstNnUgh+GxbSkimU+pln1Wctys4yC24bz6PRQkGa/KaBAR7/QdkfjrPRrp8Ccd1 GD+A== MIME-Version: 1.0 X-Received: by 10.202.77.78 with SMTP id a75mr5598873oib.32.1440124757107; Thu, 20 Aug 2015 19:39:17 -0700 (PDT) Received: by 10.202.169.196 with HTTP; Thu, 20 Aug 2015 19:39:17 -0700 (PDT) In-Reply-To: <0904D22E43B1B6A9D578E512@Pauls-MacBook-Pro.local> References: <1440100869.935695.361630681.4EA48DB2@webmail.messagingengine.com> <0904D22E43B1B6A9D578E512@Pauls-MacBook-Pro.local> Date: Thu, 20 Aug 2015 20:39:17 -0600 Message-ID: Subject: Re: Problem with freebsd-update corrupting /etc/passwd From: Paul Smith To: Paul Schmehl Cc: Mark Felder , FreeBSD Questions Content-Type: text/plain; charset=UTF-8 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 02:39:18 -0000 > > 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 thought you ran pwd_mkdb on /etc/master.password and not /etc/password. >From the man page for pwd_mkdb: Regenerate the password database after manually editing or replacing the password file: /usr/sbin/pwd_mkdb -p /etc/master.passwd Paul