I had been working on this issue with Fabian a while back:
http://www.mail-archive.com/[email protected]/msg02965.html
But there was never any resolution as to what might be causing this problem and
I had since given up. But, now I have renewed reason for getting this to work,
so I would really appreciate some help in figuring out what is going on. For
the system I am using, I do not have a local account or group on, only LDAP
accounts.
Essentially emerging any fails as follows:
emerge --oneshot "=sys-apps/sed-4.1.4*"
portage: mdmcmull user or p/gnu/admin group missing.
In Prefix Portage this is quite dramatic
since it means you have thrown away yourself.
Re-add yourself or re-bootstrap 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.
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0)
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0)
Calculating dependencies... done!
>>> Verifying ebuild Manifests...
>>> Emerging (1 of 1) sys-apps/sed-4.1.4-r1 to /
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0)
Traceback (most recent call last):
File "/gsa/ausgsa/projects/g/gnu//usr/bin/emerge", line 18, in ?
retval = _emerge.emerge_main()
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/_emerge/__init__.py", line
6835, in emerge_main
myopts, myaction, myfiles, mysets, spinner)
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/_emerge/__init__.py", line
6251, in action_build
retval = mergetask.merge(pkglist, favorites, mtimedb)
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/_emerge/__init__.py", line
3918, in merge
mode=070, mask=0)
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/portage/util.py", line 880, in
ensure_dirs
perms_modified = apply_permissions(dir_path, *args, **kwargs)
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/portage/util.py", line 605, in
apply_permissions
raise OperationNotPermitted(func_call)
portage.exception.OperationNotPermitted:
chown('/gsa/ausgsa-p5/15/gnu/var/tmp/portage', 0, 0)
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0)
Fabian had asked me to run these commands:
python -c 'import pwd; print(pwd.getpwall())' | grep mdmcmull
This does not produce any output, nor does:
python -c 'import grp; print(grp.getgrall())' | grep mdmcmull
It seems the pwd and grp modules only query the local Unix /etc/passwd and
/etc/group files. Can anyone confirm that ?
In any event, I would appreciate any advice or help in getting this to work.
Thanks,
Marshall