From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O9Ofe-00034n-O0 for garchives@archives.gentoo.org; Tue, 04 May 2010 20:24:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77E7FE0A03; Tue, 4 May 2010 20:24:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E17CCE0992 for ; Tue, 4 May 2010 20:24:20 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 71017642FE; Tue, 4 May 2010 20:24:20 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] A policy to support random superuser account names Date: Tue, 4 May 2010 15:19:44 -0400 User-Agent: KMail/1.13.1 (Linux/2.6.33.2; KDE/4.4.1; x86_64; ; ) Cc: =?utf-8?q?Micha=C5=82_G=C3=B3rny?= References: <20100430200726.298ae94c@pomiot.lan> <20100502215753.GA29226@nibiru.local> <20100503093108.0dc0bef7@pomiot.lan> In-Reply-To: <20100503093108.0dc0bef7@pomiot.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1928924.2g66YLRg18"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201005041519.45651.vapier@gentoo.org> X-Archives-Salt: 5f9e245e-be78-4166-a62c-b895ed8f9048 X-Archives-Hash: 15dffb2f93a88660f5f5444e34e71314 --nextPart1928924.2g66YLRg18 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Monday 03 May 2010 03:31:08 Micha=C5=82 G=C3=B3rny wrote: > On Sun, 2 May 2010 23:57:53 +0200 Enrico Weigelt wrote: > > * Alec Warner schrieb: > > > Except as stated they are not fixed (as Fabian pointed out). I'm > > > happy to support something like setting ROOT_UID and ROOT_GID in > > > gentoo-x86 profiles and using those. Then if you want to do > > > something utterly ridiculous to your system you can just set the > > > appropriate variables. > >=20 > > ACK. But it should also be possible to specify names here > > (not just numerical IDs), just in case the underlying kernel > > doesnt have numerical UIDs at all ... >=20 > Most tools which would use these variables (chown, find, install) > support both numerical UIDs and usernames passed in the same way. technically speaking, all values given to chown/etc... get looked up as a n= ame=20 first even if it is only numbers. so if you named an account "0", then `ch= own=20 0 foo` would not change it to UID 0, it would change it to the UID of the=20 account named "0". ROOT_{USER,GROUP} makes more sense than ROOT_{UID,GID} =2Dmike --nextPart1928924.2g66YLRg18 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAABAgAGBQJL4HNRAAoJEEFjO5/oN/WBYF4QAJAZxlVzvuTfUqGTKbNllO+I 5/BSgIl5vwcmPJYWTwqRy1Os805f1PnKoUtNtJKgA09UEbokAUjUI7AsTh56a21Y bzE3XaL5MMsiwR2qIvQoUAMnx5gsPX/IESUXcdOym/C0AkD0bZkr8B86IsfZviGT o8/eljGpK3Ev8LyXKkZr1rE2MQG3m6FKoJepSC/nhpUyMoGxhzTe6Qbv+uvYM/y/ jXn11jheKmjvL48EEk559PhqYM/7EdeqMXgKLFsrrHC4zYTxiV/JjId78hzSZP2U wY6JW9cwyAh6NhvY+cAHehtwrNBi2MaJGcmpz1XOjkkL55v3cmc8MfqfJUYJVVHx HBi0b3XnfjCt3mrc+wj/9WVOOV8tWrce3YbL+5ggYSQipo1dAlhkHPpf5ymkln5a qtciK7ueW6ygW9Ic3KuPJ3q0S5oakhiF5RCCMiel1d3lkGoeu0Mr2iIPg0OwAaJp XrjLyifjaizHAQfuitK/mZd2ud/x8VZVr6qih//eRKLL5/Kx+iyySN5T0B+7+NIN BfmVYOECuWs9dubXWdM4J2UukdsQ3/yxwSsGQkMlPtOdKhsHTm5cokLZrrEWOdF2 97M8n+Huwm+7VwIazWmi2Fd2pHvsypIPl6+4q6umJ4S6ZzOt7fwPyVA6IdNv7Crm /JPH7q7065Cyi/EVxEaV =tdts -----END PGP SIGNATURE----- --nextPart1928924.2g66YLRg18--