From owner-freebsd-stable@freebsd.org Thu Dec 12 04:50:56 2019 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BDEEE1EBAD8 for ; Thu, 12 Dec 2019 04:50:56 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (mail.geeks.org [IPv6:2001:4980:3333:1::1]) (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 47YLwH4rX6z45KK for ; Thu, 12 Dec 2019 04:50:55 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (localhost [127.0.0.1]) by after-clamsmtpd.geeks.org (Postfix) with ESMTP id 19A3A110219; Wed, 11 Dec 2019 22:50:47 -0600 (CST) Received: by mail.geeks.org (Postfix, from userid 1003) id E4C2011020A; Wed, 11 Dec 2019 22:50:46 -0600 (CST) Date: Wed, 11 Dec 2019 22:50:46 -0600 From: Doug McIntyre To: Mel Pilgrim Cc: freebsd-stable@freebsd.org Subject: Re: 11.3->12.1 upgrade, pwd db not rehashed after adding ntpd user? Message-ID: <20191212045046.GA87026@geeks.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 47YLwH4rX6z45KK X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of merlyn@geeks.org designates 2001:4980:3333:1::1 as permitted sender) smtp.mailfrom=merlyn@geeks.org X-Spamd-Result: default: False [0.81 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.63)[-0.627,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; NEURAL_HAM_LONG(-0.00)[-0.002,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[geeks.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7753, ipnet:2001:4980::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.74)[asn: 7753(3.75), country: US(-0.05)] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 04:50:56 -0000 On Wed, Dec 11, 2019 at 05:44:27PM -0800, Mel Pilgrim wrote: > I used freebsd-update to upgrade several 11.3-p5 systems to 12.1-p1. > The etc update process added the ntpd/ntpd user/group. It showed the > line changes in the plaintext passwd/group files, but the process > appears to omit the pwd_mkdb step. > > After the upgrade, ntpd fails to start: > > # service ntpd start > Starting ntpd. > su: unknown login: ntpd > /etc/rc.d/ntpd: WARNING: failed to start ntpd > > Running the usual pwd_mkdb command fixes the issue. I've had varied results with the same thing from 11.2 to 12.1. Sometimes it works, oftentimes it does not. pwd_mkdb does fix it up, but would be nice to not have to do that.