bin/165954: freebsd-update doesn't run pwd_mkdb after adding user

Kevin Day kevin at your.org
Mon Mar 12 00:40:06 UTC 2012


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


More information about the freebsd-bugs mailing list