Bug 87914

Summary: Adduser, uuid not used from adduser.conf
Product: Base System Reporter: FRANCHET Nicolas <nrfanchet>
Component: confAssignee: Matteo Riondato <matteo>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.3-RELEASE   
Hardware: Any   
OS: Any   

Description FRANCHET Nicolas 2005-10-24 11:50:13 UTC
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).

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)
How-To-Repeat: just adduser
Comment 1 Matteo Riondato freebsd_committer freebsd_triage 2006-01-22 16:18:26 UTC
Responsible Changed
From-To: freebsd-bugs->matteo

Take this one
Comment 2 Matteo Riondato freebsd_committer freebsd_triage 2006-01-22 18:38:07 UTC
State Changed
From-To: open->patched

Committed to HEAD
Comment 3 Matteo Riondato freebsd_committer freebsd_triage 2006-01-26 20:04:52 UTC
State Changed
From-To: patched->closed

Fixed in HEAD and in RELENG_6
Comment 4 ttaka 2006-04-07 07:23:04 UTC
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