From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 28 17:30:54 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 530C7106564A for ; Tue, 28 Jun 2011 17:30:54 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1A7D78FC1A for ; Tue, 28 Jun 2011 17:30:53 +0000 (UTC) Received: by iyb11 with SMTP id 11so484107iyb.13 for ; Tue, 28 Jun 2011 10:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=dw9RhHss2uoVy1jmXTTTGV61j8Axgoab+9hd6VU6xkw=; b=UU/MS0DvZ+nkKLaTKjeNBQ8r5uE+xHfhqf2M/IMx2jANRQmklpOEKlfYG6gIx0+Fd8 +/euLwyJisLjKqxTn0i7ZlsKRDDHKGL1O1siyz+a2cVUnJypixyz/08cCeZlg2WWmDuN aQaE1S+98rMFZsaOD33+G/4lh8rIkxXP2L4V8= Received: by 10.43.130.134 with SMTP id hm6mr9222458icc.517.1309282253120; Tue, 28 Jun 2011 10:30:53 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.49.193 with HTTP; Tue, 28 Jun 2011 10:30:23 -0700 (PDT) In-Reply-To: <20110628165911.GC44024@dan.emsphone.com> References: <20110628165911.GC44024@dan.emsphone.com> From: Chris Rees Date: Tue, 28 Jun 2011 18:30:23 +0100 X-Google-Sender-Auth: dhysmugy5C_qjMPq6AoZmk2avNw Message-ID: To: Dan Nelson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: Default value for UIDs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2011 17:30:54 -0000 On 28 June 2011 17:59, Dan Nelson wrote: > In the last episode (Jun 28), Chris Rees said: >> Hi all, >> >> [crees@zeus]~% tail -n 2 /usr/ports/UIDs >> dbxml:*:949:949::0:0:dbXML user:/nonexistent:/sbin/nologin >> nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nolog= in >> [crees@zeus]~% grep crees /etc/passwd >> crees:*:1001:1001:Chris Rees:/home/crees:/bin/tcsh >> chris:*:1001:1001:Chris Rees:/home/crees:/bin/tcsh >> [crees@zeus]~% >> >> I'm a little concerned at how close the ports UIDs are getting to the >> username space... > > There are only 216 entries in UIDs, though, so if people are just using > "last entry + 1" when adding new ones, they should probably start filling > the gaps instead. =A0The 100s and 200s are pretty dense, but 350-399 only= has > 5 entries, 400-499 has 4, 600-699 has 7, 700-799 has 3, etc. > Thank you for pointing that out (d'oh). However, perhaps we could still address the *potential* problems. To use one example, Debian has (as long as I can remember) used 10001 for the first username. When we have 65535 - 99 UIDs to play with, expansion like this isn't a problem. Could it be worth it? Think of ten years down the line. Chris