Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2012 08:24:24 -0500
From:      Mark Felder <feld@feld.me>
To:        current@freebsd.org
Subject:   Re: FreeBSD and LDAP users, bug or feature?
Message-ID:  <op.wegfiyo734t2sn@tech304>
In-Reply-To: <20120517094949.GK6475@goofy01.vnodelab.local>
References:  <20120517094949.GK6475@goofy01.vnodelab.local>

next in thread | previous in thread | raw e-mail | index | archive | help
Check man adduser.conf(5)

There is an option for "uidstart" which should do what you want. If you  
set it to 1000 every time you run "adduser" it will show:

#  adduser
Username: foo
Full name: bar
Uid [1000]:

Don't worry -- it's just showing you the starting range. If there is  
already a UID of 1000 in use it will choose the next available. It's  
pretty nice because it even fills in holes if you remove users and then  
add new ones. However, that might be undesirable if you happen to leave  
files around from previous users and the new user gets the owning UID of  
those files....


hth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.wegfiyo734t2sn>