Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2012 20:29:01 GMT
From:      Kevin Day <kevin@your.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/165954: freebsd-update doesn't run pwd_mkdb after adding user
Message-ID:  <201203082029.q28KT13o023484@ftpmirror.your.org>
Resent-Message-ID: <201203120040.q2C0e5if056780@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203082029.q28KT13o023484>