Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2011 17:47:24 +0100
From:      Chris Rees <crees@freebsd.org>
To:        hackers@freebsd.org
Subject:   Default value for UIDs
Message-ID:  <BANLkTimw9c_jYCeomW50EckGpsP9Gv574Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimw9c_jYCeomW50EckGpsP9Gv574Q>