Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-alt@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: [prefix][linux] permission problem mergingapr-util on linux
Date: Wed, 18 Apr 2007 11:52:25 +0200
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 ?

Eh yes.

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.

-- 
Fabian Groffen
Gentoo on a different level

-- 
gentoo-alt@g.o mailing list


References:
[prefix][linux] permission problem merging apr-util on linux
-- Michael Haubenwallner
Re: [prefix][linux] permission problem merging apr-util on linux
-- Armando Di Cianno
Re: [prefix][linux] permission problem merging apr-util on linux
-- Fabian Groffen
Re: [prefix][linux] permission problem mergingapr-util on linux
-- Michael Haubenwallner
Navigation:
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [prefix][linux] permission problem mergingapr-util on linux
Next by thread:
[PREFIX] dynamic linking: moving the locations
Previous by date:
Re: [prefix] ca-certificates depends on deb2targz for non-aix
Next by date:
Re: Stuff about tree/overlays


Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.