From danm@prime.gushi.org  Thu Sep 27 19:25:03 2007
Return-Path: <danm@prime.gushi.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B1FB216A417
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Sep 2007 19:25:03 +0000 (UTC)
	(envelope-from danm@prime.gushi.org)
Received: from prime.gushi.org (prime.gushi.org [72.9.101.130])
	by mx1.freebsd.org (Postfix) with ESMTP id 5948E13C458
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Sep 2007 19:25:03 +0000 (UTC)
	(envelope-from danm@prime.gushi.org)
Received: from prime.gushi.org (localhost [127.0.0.1])
	by prime.gushi.org (8.13.8/8.13.8) with ESMTP id l8RIlSv8001965
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Sep 2007 14:47:30 -0400 (EDT)
	(envelope-from danm@prime.gushi.org)
Received: (from danm@localhost)
	by prime.gushi.org (8.13.8/8.13.8/Submit) id l8RIlStX001963;
	Thu, 27 Sep 2007 14:47:28 -0400 (EDT)
	(envelope-from danm)
Message-Id: <200709271847.l8RIlStX001963@prime.gushi.org>
Date: Thu, 27 Sep 2007 14:47:28 -0400 (EDT)
From: Dan.Mahoney@prime.gushi.org (danm@prime.gushi.org)
Reply-To: Dan.Mahoney@prime.gushi.org (danm@prime.gushi.org)
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: adduser echoes wrong UID on subsequent additions
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         116694
>Category:       bin
>Synopsis:       adduser(8) echoes wrong UID on subsequent additions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 27 19:30:01 GMT 2007
>Closed-Date:    Sun Jan 27 08:28:23 UTC 2008
>Last-Modified:  Sun Jan 27 08:28:23 UTC 2008
>Originator:     Dan Mahoney (danm@prime.gushi.org)
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD prime.gushi.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Dec 20 05:43:31 EST 2006 danm@prime.gushi.org:/usr/obj/usr/src/sys/GENERIC i386
Standard FreeBSD system.

>Description:
Using adduser once will prompt "press enter for default", creating a new
UID.  However, at the end when you are asked if you wish to create an
additional user, you are prompted with the UID of the user you just
created, leading you to believe subsequent users will be created with
the same UID.  

>How-To-Repeat:

See transcript:

prime# adduser
Username: arek
Full name: Aerk from BBI
Uid (Leave empty for default): 
Login group [arek]: 
Login group is arek. Invite arek into other groups? []: bbuisers
Group bbuisers does not exist!
Login group is arek. Invite arek into other groups? []: bbiusers
Login class [default]: 
Shell (sh csh tcsh bash mudsh nologin) [sh]: 
Home directory [/home/arek]: 
Use password-based authentication? [yes]: 
Use an empty password? (yes/no) [no]: 
Use a random password? (yes/no) [no]: 
Enter password: 
Enter password again: 
Lock out the account after creation? [no]: no 
Username   : arek
Password   : *****
Full Name  : Aerk from BBI
Uid        : 7218
Class      : 
Groups     : arek bbiusers
Home       : /home/arek
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (arek) to the user database.
Add another user? (yes/no): yes
Username: anothertest
Full name: another test
Uid [7218]:  -- Note the prompt here -- this is misleading!!!!!
Login group [anothertest]: 
Login group is anothertest. Invite anothertest into other groups? []: no
Group no does not exist!
Login group is anothertest. Invite anothertest into other groups? []: 
Login class [default]: 
Shell (sh csh tcsh bash mudsh nologin) [sh]: 
Home directory [/home/anothertest]: 
Use password-based authentication? [yes]: 
Use an empty password? (yes/no) [no]: 
Use a random password? (yes/no) [no]: 
Enter password: 
Enter password again: 
Lock out the account after creation? [no]: 
Username   : anothertest
Password   : *****
Full Name  : another test
Uid        : 7219
Class      : 
Groups     : anothertest 
Home       : /home/anothertest
Shell      : /bin/sh
Locked     : no
OK? (yes/no): no

>Fix:

A fix would be to not have the prompt not print the UID of the previously-
added-user.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mtm 
State-Changed-When: Sun Jan 27 08:27:37 UTC 2008 
State-Changed-Why:  
Fixed in rev. 1.30 on 2007/04/12 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116694 
>Unformatted:
