List Info

Thread: Re: Fwd: Re: emerge fails on wheelgid




Re: Fwd: Re: emerge fails on wheelgid
user name
2007-07-19 16:05:51
Well, I've got the latest, and I bootstrapped the latest
portage tree, as
well as portage itself. Now when trying to emerge, I get
this error:

$ emerge --oneshot sed

portage: mdmcmull user or group missing.i
         In Prefix Portage this is quite dramatic
         since it means you have thrown away yourself.
         Re-add yourself, or rebootstrap Gentoo Prefix.

*** WARNING ***  For security reasons, only system
administrators should be
*** WARNING ***  allowed in the portage group.  Untrusted
users or
processes
*** WARNING ***  can potentially exploit the portage group
for attacks such
as
*** WARNING ***  local privilege escalation.

Adjusting permissions recursively:
'/gsa/ausgsa/home/m/d/mdmcmull/.overlay/var/cache/edb/dep'
emergelog():
chown('/gsa/ausgsa/home/m/d/mdmcmull/.overlay/var/log/emerge
.log', 0, 0)
emergelog():
chown('/gsa/ausgsa/home/m/d/mdmcmull/.overlay/var/log/emerge
.log', 0, 0)
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sys-apps/sed-4.1.5 to /
emergelog():
chown('/gsa/ausgsa/home/m/d/mdmcmull/.overlay/var/log/emerge
.log', 0, 0)
Traceback (most recent call last):
  File
"/gsa/ausgsa/home/m/d/mdmcmull/.overlay/usr/bin/emerge&
quot;, line 18, in
?
    retval = emerge_main()
  File
"/gsa/ausgsa-h2/00/mdmcmull/.overlay/usr/lib/portage/py
m/emerge/__init__.py",
line 6349, in emerge_main
    myopts, myaction, myfiles, spinner)
  File
"/gsa/ausgsa-h2/00/mdmcmull/.overlay/usr/lib/portage/py
m/emerge/__init__.py",
line 5811, in action_build
    retval = mergetask.merge(pkglist, favorites, mtimedb)
  File
"/gsa/ausgsa-h2/00/mdmcmull/.overlay/usr/lib/portage/py
m/emerge/__init__.py",
line 3592, in merge
    mode=070, mask=0)
  File
"/gsa/ausgsa-h2/00/mdmcmull/.overlay/usr/lib/portage/py
m/portage/util.py",
line 863, in ensure_dirs
    perms_modified = apply_permissions(dir_path, *args,
**kwargs)
  File
"/gsa/ausgsa-h2/00/mdmcmull/.overlay/usr/lib/portage/py
m/portage/util.py",
line 588, in apply_permissions
    raise OperationNotPermitted(func_call)
portage.exception.OperationNotPermitted:
chown('/gsa/ausgsa-h2/00/mdmcmull/.overlay/var/tmp/portage',
0, 0)
emergelog():
chown('/gsa/ausgsa/home/m/d/mdmcmull/.overlay/var/log/emerge
.log', 0, 0)

I have two different AIX systems here. On one of them, this
works as it
should, but on this newest one it fails as indicated above.
The difference,
is on the first, I have a local account on the machine. On
the second I do
not have a local account, but instead it uses a distributed
auth system
called gsa. I'm certain this is what is causing the error,
but I don't know
how to debug this. Any advice ?


On Thu, 19 Jul 2007 21:29:34 +0200, Fabian Groffen
<grobiangentoo.org>
wrote:
> On 19-07-2007 14:08:33 -0500, Marshall McMullen wrote:
>>
>> Oops, you got me. I updated the bootstrap_prefix.sh
script, and then
>> installed portage, but did not sync the tree with
the latest as svn
> doesn't
>> work on my AIX box. I'll try a new snapshot
whenever you get it ready.
>> Many thanks!
> 
> Ok, I uploaded the snapshot.  Make sure you get it
> # $Id: bootstrap-prefix.sh 7670 2007-07-19 19:28:17Z
grobian $
> 
> Let me know if that works.
> 
> --
> Fabian Groffen
> Gentoo on a different level
> 
> --
> gentoo-altgentoo.org mailing list

-- 
gentoo-altgentoo.org mailing list


Re: Fwd: Re: emerge fails on wheelgid
user name
2007-07-20 02:29:58
On 19-07-2007 16:05:51 -0500, Marshall McMullen wrote:
> 
> Well, I've got the latest, and I bootstrapped the
latest portage tree, as
> well as portage itself. Now when trying to emerge, I
get this error:
> 
> $ emerge --oneshot sed
> 
> portage: mdmcmull user or group missing.i
>          In Prefix Portage this is quite dramatic
>          since it means you have thrown away yourself.
>          Re-add yourself, or rebootstrap Gentoo
Prefix.

Interesting!

What fails here is one of these two:
    portage_uid=pwd.getpwnam(portageuser)[2]
    portage_gid=grp.getgrnam(portagegroup)[2]

In the current version, only the value of
"portageuser" is printed, but
the problem may be in "portagegroup" as well.

Can you look into your
$EPREFIX/usr/lib/portage/pym/portage/const_autotool.py file
and check if
portageuser and portagegroup match the output of `id`?

> I have two different AIX systems here. On one of them,
this works as it
> should, but on this newest one it fails as indicated
above. The difference,
> is on the first, I have a local account on the machine.
On the second I do
> not have a local account, but instead it uses a
distributed auth system
> called gsa. I'm certain this is what is causing the
error, but I don't know
> how to debug this. Any advice ?

I bet this is related.  Unless IBM really wants not to be
compatible
with any program doing user/group queries, I cannot imagine
that gsa
doesn't work through getent and friends.


-- 
Fabian Groffen
Gentoo on a different level

-- 
gentoo-altgentoo.org mailing list


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )