From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 12 00:40:06 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E93B1065676 for ; Mon, 12 Mar 2012 00:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 273098FC1F for ; Mon, 12 Mar 2012 00:40:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2C0e5Qu056781 for ; Mon, 12 Mar 2012 00:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2C0e5if056780; Mon, 12 Mar 2012 00:40:05 GMT (envelope-from gnats) Resent-Date: Mon, 12 Mar 2012 00:40:05 GMT Resent-Message-Id: <201203120040.q2C0e5if056780@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kevin Day Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80210106564A for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/165954: freebsd-update doesn't run pwd_mkdb after adding user X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kevin Day List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 00:40:06 -0000 >Number: 165954 >Category: bin >Synopsis: freebsd-update doesn't run pwd_mkdb after adding user >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >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: >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: >Unformatted: