From owner-freebsd-questions@FreeBSD.ORG Wed Dec 12 17:58:45 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7FE416A419 for ; Wed, 12 Dec 2007 17:58:45 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from exhub015-2.exch015.msoutlookonline.net (exhub015-2.exch015.msoutlookonline.net [207.5.72.94]) by mx1.freebsd.org (Postfix) with ESMTP id 937AB13C469 for ; Wed, 12 Dec 2007 17:58:45 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.0.744.0; Wed, 12 Dec 2007 09:58:44 -0800 Message-ID: <47602153.70201@riderway.com> Date: Wed, 12 Dec 2007 12:58:43 -0500 From: "Philip M. Gollucci" Organization: Riderway Inc. User-Agent: Thunderbird 2.0.0.6 (X11/20070919) MIME-Version: 1.0 To: Francisco Reyes References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Free BSD Questions list Subject: Re: Where is the next uid from adduser pulled from? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2007 17:58:45 -0000 Francisco Reyes wrote: > I have scripts to add new users. However, after that any port that installs > a user creates it with a UID after the ones I made. > > For example I want all employees to have uids starting at 5000, but I would > like too port installed uids to be 2000 and up. After I add some users (ie > say last user is 5008), the next port that installs a user and doesn't > specify uid.. then will get 5009. > > Tried looking for the adduser program, but could not find adduser.c /usr/src/usr.sbin/pw Ports call 'pw add user x', and pw add group y' -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@ridecharge.com) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.