Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <gentoo@××××××××××.pl>
Subject: Re: [gentoo-dev] A policy to support random superuser account names
Date: Tue, 04 May 2010 20:24:51
Message-Id: 201005041519.45651.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] A policy to support random superuser account names by "Michał Górny"
1 On Monday 03 May 2010 03:31:08 Michał Górny wrote:
2 > On Sun, 2 May 2010 23:57:53 +0200 Enrico Weigelt wrote:
3 > > * Alec Warner <antarus@g.o> schrieb:
4 > > > Except as stated they are not fixed (as Fabian pointed out). I'm
5 > > > happy to support something like setting ROOT_UID and ROOT_GID in
6 > > > gentoo-x86 profiles and using those. Then if you want to do
7 > > > something utterly ridiculous to your system you can just set the
8 > > > appropriate variables.
9 > >
10 > > ACK. But it should also be possible to specify names here
11 > > (not just numerical IDs), just in case the underlying kernel
12 > > doesnt have numerical UIDs at all ...
13 >
14 > Most tools which would use these variables (chown, find, install)
15 > support both numerical UIDs and usernames passed in the same way.
16
17 technically speaking, all values given to chown/etc... get looked up as a name
18 first even if it is only numbers. so if you named an account "0", then `chown
19 0 foo` would not change it to UID 0, it would change it to the UID of the
20 account named "0".
21
22 ROOT_{USER,GROUP} makes more sense than ROOT_{UID,GID}
23 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature