Date: Thu, 27 Sep 2007 14:47:28 -0400 (EDT) From: Dan.Mahoney@prime.gushi.org (danm@prime.gushi.org) To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/116694: adduser echoes wrong UID on subsequent additions Message-ID: <200709271847.l8RIlStX001963@prime.gushi.org> Resent-Message-ID: <200709271930.l8RJU2k9032669@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116694 >Category: bin >Synopsis: adduser echoes wrong UID on subsequent additions >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: Thu Sep 27 19:30:01 GMT 2007 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709271847.l8RIlStX001963>