List Archive: gentoo-alt
Note: Due to technical difficulties, the Archives are currently not up to date.
provides an alternative service for most mailing lists.c.f. bug 424647
On 11-04-2007 15:55:56 +0200, Michael Haubenwallner wrote:
> What if we use "$PORTAGE_INST_UID:$PORTAGE_INST_GID" where currently
> "root:0" is used.
> On native Gentoo-Linux, these are set to "0:0" in /etc/make.globals.
> Note that I did not find PORTAGE_INST_USER here - is this an extension
> of prefix-portage ?
But ehm... the problem here is that prefix itself has nothing to do with
dropping privileges. We just drop privileges, because there is no
reason to have them in a prefix (except for things like ping or
traceroute maybe). Hence, prefix has nothing to do with users and
permissions here. It is a side-effect which is very much desirable (to
me) but actually getting in the way now.
> For using prefix as 'root', set them to '0:0' too, and when using prefix
> as user, set them to '<myuid>:<mygid>'. Portage has some configure-args
> to set the defaults into installed make.defaults IIRC.
> Don't know on how to do with "root:man" and the like:
> If being used as 'root', creating users and groups might be possible,
> but I'm unsure if it makes sense at all, as the uid's and gid's of
> existing users/groups may vary.
I think this is just manual "userwork" of getting it right. I don't
believe common sense or global variables can help here. It's too much
of a border case here.
Gentoo on a different level
firstname.lastname@example.org mailing list