From nobody@FreeBSD.org  Mon Oct 24 10:44:21 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8EAFB16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2005 10:44:21 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5BE2343D48
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2005 10:44:21 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9OAiKIi021135
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2005 10:44:20 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9OAiK1l021134;
	Mon, 24 Oct 2005 10:44:20 GMT
	(envelope-from nobody)
Message-Id: <200510241044.j9OAiK1l021134@www.freebsd.org>
Date: Mon, 24 Oct 2005 10:44:20 GMT
From: FRANCHET Nicolas <nrfanchet@peterpanfr.cjb.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Adduser, uuid not used from adduser.conf
X-Send-Pr-Version: www-2.3

>Number:         87914
>Category:       conf
>Synopsis:       Adduser, uuid not used from adduser.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    matteo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 24 10:50:13 GMT 2005
>Closed-Date:    Thu Jan 26 20:05:30 GMT 2006
>Last-Modified:  Fri Apr  7 06:30:15 GMT 2006
>Originator:     FRANCHET Nicolas
>Release:        FreeBSD 5.3-RELEASE
>Organization:
-
>Environment:
FreeBSD ares.ptitoliv.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
The default first uid used by adduser is over 10000, but we want to use above 1000, so we set uuid=1000 in adduser.conf like is said in the manpage. Adduser still wanted to create user with uuid greater than 10000, so i search and found that in adduser the uidstart variable override uuid in get_uid function even though uuid is set (and not uidstart).
>How-To-Repeat:
just adduser
>Fix:
It is not a fix, but if we set uidstart=1000 in adduser.conf adduser add a user with a uid greater than 1000 (and below 10000)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->matteo 
Responsible-Changed-By: matteo 
Responsible-Changed-When: Sun Jan 22 16:18:26 UTC 2006 
Responsible-Changed-Why:  
Take this one 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87914 
State-Changed-From-To: open->patched 
State-Changed-By: matteo 
State-Changed-When: Sun Jan 22 18:38:07 UTC 2006 
State-Changed-Why:  
Committed to HEAD 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87914 
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Thu Jan 26 20:04:52 UTC 2006 
State-Changed-Why:  
Fixed in HEAD and in RELENG_6 

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

From: Toru TAKAMIZU <ttaka@earth.email.ne.jp>
To: bug-followup@FreeBSD.org, matteo@FreeBSD.org
Cc:  
Subject: Re: conf/87914: Adduser, uuid not used from adduser.conf
Date: Fri, 7 Apr 2006 15:23:04 +0900

 The original problem was solved by the adduser.sh change
 (from 1.26 -> 1.27).
 
 But this change causes another problem. When you add more than
 two users by "adduser", the uid does not increase automatically.
 
 My guess is:
 1. After answering "yes" to "Add another user?" question,
    "$uidstart" changes.
 
 2. 1.26 and prior versions of adduser.sh executes
    "uuid=${uidstart}" unconditionally, while the latest
    version does not. As a result, "$uidstart" change above
    has no effect on "$uuid".
 
 Sorry if my guess is wrong. I cannot fully understand the
 script.
 
     Toru TAKAMIZU
>Unformatted:
