From owner-freebsd-ports@FreeBSD.ORG Sun Nov 12 18:36:18 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 952DB16A40F; Sun, 12 Nov 2006 18:36:18 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 008EC43D49; Sun, 12 Nov 2006 18:36:12 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id kACIZkCm096450; Sun, 12 Nov 2006 20:35:53 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Sun, 12 Nov 2006 20:35:46 +0200 (EET) From: Dmitry Pryanishnikov To: "Simon L. Nielsen" In-Reply-To: <20061111203731.GL1006@zaphod.nitro.dk> Message-ID: <20061112202704.Y84774@atlantis.atlantis.dp.ua> References: <20061111210303.A92042@atlantis.atlantis.dp.ua> <20061111203731.GL1006@zaphod.nitro.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ports@FreeBSD.org Subject: Re: UID/GID dynamic allocation in net/isc-dhcp3-server: why? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2006 18:36:18 -0000 Hello! On Sat, 11 Nov 2006, Simon L. Nielsen wrote: >> of [ug]id ranges, and dynamic allocation doesn't keep within this idea >> (ids of users and daemons get mixed). Is there specific reason why there >> is no static [ug]id for net/isc-dhcp3-server? > > Personally I have it precisely the other way around - I find the > static allocations rather annoying since they are bound to collide > with existing UID's at some point. > > IMO the optimal solution would be to have some magic which auto > assigns ports/system UID/GID's from different ranges that normal > users. Well, this (auto-assign from different range, maybe subrange of 100-999) would also be OK. Now net/isc-dhcp3-server just grabs next [ug]id from _the same_ range as user ids (in my system, it was uid=1002 and gid=1001). IMHO this behaviour should be corrected so dhcpd [ug]ids won't mix with user ids. AFAIK there is no such thing (still) as dynamic allocation from separate range, so static id allocation is the only viable solution for now. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE