From root@ftpmirror.your.org  Mon Mar 12 00:37:52 2012
Return-Path: <root@ftpmirror.your.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 80210106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 Mar 2012 00:37:52 +0000 (UTC)
	(envelope-from root@ftpmirror.your.org)
Received: from ftpmirror.your.org (ftpmirror.your.org [IPv6:2001:4978:1:420::cc09:3752])
	by mx1.freebsd.org (Postfix) with ESMTP id 429FA8FC18
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 Mar 2012 00:37:52 +0000 (UTC)
Received: from ftpmirror.your.org (localhost [127.0.0.1])
	by ftpmirror.your.org (8.14.5/8.14.5) with ESMTP id q2C0bmgR088510
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 12 Mar 2012 00:37:51 GMT
	(envelope-from root@ftpmirror.your.org)
Received: (from root@localhost)
	by ftpmirror.your.org (8.14.5/8.14.5/Submit) id q28KT13o023484;
	Thu, 8 Mar 2012 20:29:01 GMT
	(envelope-from root)
Message-Id: <201203082029.q28KT13o023484@ftpmirror.your.org>
Date: Thu, 8 Mar 2012 20:29:01 GMT
From: Kevin Day <kevin@your.org>
Reply-To: Kevin Day <kevin@your.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: freebsd-update doesn't run pwd_mkdb after adding user
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         165954
>Category:       bin
>Synopsis:       freebsd-update(8) doesn't run pwd_mkdb after adding user
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cperciva
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 12 00:40:05 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Apr 13 23:25:06 UTC 2014
>Originator:     Kevin Day
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
Your.Org
>Environment:
System: FreeBSD ftpmirror.your.org 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:

When using freebsd-update to go from 8.x to 9.0-RELEASE, it adds the "hast" user/group to /etc/passwd /etc/master.passwd /etc/group

However, it doesn't run pwd_mkdb afterwards so /etc/pwd.db and /etc/spwd.db don't get updated to contain the new user. hastd won't start (because it can't find its user) until you manually run pwd_mkdb after upgrading.

>How-To-Repeat:

Use freebsd-update to upgrade from 8.x to 9.0, then try starting hastd.

>Fix:

freebsd-update probably should run pwd_mkdb after an update if it altered the password file.

It also might want to run some of the other things that mergemaster does, like cap_mkdb on login.conf and services_mkdb if it's not directly replacing those .db files.



>Release-Note:
>Audit-Trail:

From: Patrick Gibson <patrick@patrickg.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/165954: freebsd-update doesn&#39;t run pwd_mkdb after adding user
Date: Mon, 24 Feb 2014 11:42:38 -0800

 I've notice the same thing happen on a number of upgrades using =
 freebsd-update, and each time the fix has been to manually run pwd_mkdb.=
Responsible-Changed-From-To: freebsd-bugs->cperciva 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Apr 13 23:24:27 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165954 
>Unformatted:
