From owner-freebsd-questions@FreeBSD.ORG Mon Dec 17 20:06:54 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 F156416A419 for ; Mon, 17 Dec 2007 20:06:54 +0000 (UTC) (envelope-from nino80@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by mx1.freebsd.org (Postfix) with ESMTP id D24FE13C4E7 for ; Mon, 17 Dec 2007 20:06:54 +0000 (UTC) (envelope-from nino80@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so2204998rvb.43 for ; Mon, 17 Dec 2007 12:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YdBvqY44qWJOBw5QaN/dXiX+3Gfw7zdaumK53Dcysi0=; b=r0vX+fn6iZ69Mk/jHrqQ8vvcbABOf587YYpFmgnN4JlmFpR21Tnoa1e+a+m7z/oTV2UaOOyOQFF1Ch06gh3RX0S0ieWwCxkXc5D4w87UOl/Gh/+kMMi8eKtZWVHicYkn+y6RGh2xQ7YLCKFNDw8danmTQNKXcqUQ0lMDbh/stSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T+sqAf5BKo0mxi3supPPqf7Xe/ZdowQRKqV/YOZJD9xr5FnZ3CLb/aFB2PQBcv2AyEbJVLyUA0OWYEklQ3rpn67C/1kjmSBi50wU6VlyakTT09TZdG/gzGxMaat8NoXVbgm+FsxVJGYS3+KRJUCGO+fjdavu7zCqVCVJzYJ4u0s= Received: by 10.140.128.11 with SMTP id a11mr4265176rvd.232.1197922014270; Mon, 17 Dec 2007 12:06:54 -0800 (PST) Received: by 10.141.43.19 with HTTP; Mon, 17 Dec 2007 12:06:54 -0800 (PST) Message-ID: <92bcbda50712171206g132754d8ke206e82d32315153@mail.gmail.com> Date: Mon, 17 Dec 2007 21:06:54 +0100 From: "n j" To: "Francisco Reyes" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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: Mon, 17 Dec 2007 20:06:55 -0000 > Tried looking for the adduser program, but could not find adduser.c Just to point out that adduser is a shell script, as witnessed by: # file /usr/sbin/adduser /usr/sbin/adduser: Bourne shell script text executable and the response to the original question - how does the system generate new UIDs - is best answered by examining the get_nextuid () function inside adduser script. Regards, -- Nino