From nobody@FreeBSD.org  Mon Jan 16 10:51:25 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 621B4106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Jan 2012 10:51:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 516D58FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Jan 2012 10:51:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0GApPOn045001
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Jan 2012 10:51:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0GApO9s045000;
	Mon, 16 Jan 2012 10:51:24 GMT
	(envelope-from nobody)
Message-Id: <201201161051.q0GApO9s045000@red.freebsd.org>
Date: Mon, 16 Jan 2012 10:51:24 GMT
From: "Bas v.d. Wiel" <bas@area536.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Ports fail to acknowlegde newly created users
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164199
>Category:       ports
>Synopsis:       Ports fail to acknowlegde newly created users
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 16 11:00:20 UTC 2012
>Closed-Date:    Mon Oct 08 03:09:39 UTC 2012
>Last-Modified:  Tue Oct  9 22:30:19 UTC 2012
>Originator:     Bas v.d. Wiel
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD thinkpad.local.area536.com 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:
Any ports that create their own system users, like dbus and HAL, fail to acknowledge the fact that these users actually exist. The error reported is something along the lines of "User went away during upgrade". The user is actually created and exists in /etc/passwd but the installation script for ports somehow doesn't notice this. 
>How-To-Repeat:
Install any port that creates a system user, like dbus.
>Fix:
Commenting out the USER and GROUP lines in the port's Makefile and running 'make install' a second time works as a workaround after the first 'make install' fails.

>Release-Note:
>Audit-Trail:

From: Jan Beich <jbeich@tormail.net>
To: "Bas v.d. Wiel" <bas@area536.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/164199: Ports fail to acknowlegde newly created users
Date: Mon, 16 Jan 2012 02:06:41 -0900

 "Bas v.d. Wiel" <bas@area536.com> writes:
 
 >>Description:
 > Any ports that create their own system users, like dbus and HAL, fail
 > to acknowledge the fact that these users actually exist. The error
 > reported is something along the lines of "User went away during
 > upgrade". The user is actually created and exists in /etc/passwd but
 > the installation script for ports somehow doesn't notice this.
 
 Do you happen to run nscd(8) ? See bin/119695.

From: "Bas v.d. Wiel" <bas@area536.com>
To: <bug-followup@FreeBSD.org>, <bas@area536.com>
Cc:  
Subject: Re: ports/164199: Ports fail to acknowledge newly created users
Date: Mon, 16 Jan 2012 14:59:45 +0100

  I'm not running nscd. If needed I can provide a list of installed ports 
  but it's hundreds of items long, so I'll skip that for now. Problem 
  started when installing x11/xorg on a system freshly upgraded from a 
  completely clean 8.2 RELEASE to 9.0 RELEASE, using freebsd-update.

From: Jason Helfman <jgh@FreeBSD.org>
To: bug-followup@freebsd.org
Cc:  
Subject: re: ports/164199
Date: Wed, 5 Sep 2012 22:09:26 -0700

 Hi,
 
 I've found this issue not to be specific to any port, but is specific to
 corruption of the /etc/passwd, or /etc/master.passwd files.
 
 Try running pwd_mkdb -C against either of these files to see if there is any
 valid corruption in your password database files.
 
 I've had this happen before, myself, and after fixing the corruption, this
 very error went away.
 
 For reference here is another pr regarding the same issue.
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170313
 
 -jgh
 
 -- 
 Jason Helfman
 FreeBSD Committer | http://people.freebsd.org/~jgh | The Power To Serve
State-Changed-From-To: open->feedback 
State-Changed-By: jgh 
State-Changed-When: Thu Sep 6 06:31:18 UTC 2012 
State-Changed-Why:  
move to feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164199 
State-Changed-From-To: feedback->closed 
State-Changed-By: jgh 
State-Changed-When: Mon Oct 8 03:09:38 UTC 2012 
State-Changed-Why:  
feedback timeout, feel free to re-open report if this issue surfaces 
again, and you have a non-corrupt password database 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164199 

From: Miroslav Lachman <quip@quip.cz>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/164199: Ports fail to acknowlegde newly created users
Date: Mon, 08 Oct 2012 23:37:19 +0200

 I had this problem two times this year on two different machines. (never 
 before)
 I don't know if it is caused by some bug in FreeBSD base (pw) or in the 
 ports infrastructure.
 
 It was problem with corrupted password database, but from my point of 
 view, the corruption was caused by port installation process. Password 
 database was correct before and all four files (passwd master.passwd 
 pwd.db spwd.db) had same modification date and time of first 
 unsuccessful port install.
 
 A new user account can be manually found in passwd / master.passwd or by 
 command vipw, but was not seen by 'pw' command.
>Unformatted:
