From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 28 16:47:56 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 AE81E106566C for ; Tue, 28 Jun 2011 16:47:56 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7B1A08FC18 for ; Tue, 28 Jun 2011 16:47:56 +0000 (UTC) Received: by iwr19 with SMTP id 19so436440iwr.13 for ; Tue, 28 Jun 2011 09:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=tTfF64eAvYoPRBEDP3B7f6F1Ln2bj9raiMcvTYgWKSw=; b=Ey7pu4XiULVPv3M6ZyhQqeMNnQYJShyvy4PX96wT+GCqTpfUW5NU/kWDyG0VC2ZQZS oKQOdBLyqpgxFp35aBEP6/VQPAQq3T/W72BTEZEbHqgIP1+XbVFuONR9A67OuFXKWA5E 4V2jpXiM179wsgs53QpzTeONJO7UwJpeM2y6Y= Received: by 10.231.114.86 with SMTP id d22mr876188ibq.45.1309279674072; Tue, 28 Jun 2011 09:47:54 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.49.193 with HTTP; Tue, 28 Jun 2011 09:47:24 -0700 (PDT) From: Chris Rees Date: Tue, 28 Jun 2011 17:47:24 +0100 X-Google-Sender-Auth: hs5-7mpIR8zcx1II2QAAWWuAXzc Message-ID: To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: 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 16:47:56 -0000 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/nologin [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... A patch at [1] solves the problem for new installs, but it is definitely shutting the stable door after the horse has bolted. Other than jumping to 32001 for new ports UIDs, we should possible consider alternatives? Before people scoff at the prospect of this number being reached soon, I'm working on patching the ports tree (with bapt) to make sure that all ports that create users have a UIDs entry, and there seems to be many that don't. Can we at least get this in for new installs? I'm aware other patches will be needed (perhaps sysinstall haha), but does this look workable? We're in the minority of OSes it appears -- many others have made users from 10000 for a while. Chris [1] http://people.freebsd.org/~crees/patches/pw-default-uid.diff