1 |
I had been working on this issue with Fabian a while back: http://www.mail-archive.com/gentoo-alt@l.g.o/msg02965.html |
2 |
|
3 |
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. |
4 |
|
5 |
Essentially emerging any fails as follows: |
6 |
|
7 |
emerge --oneshot "=sys-apps/sed-4.1.4*" |
8 |
|
9 |
portage: mdmcmull user or p/gnu/admin group missing. |
10 |
In Prefix Portage this is quite dramatic |
11 |
since it means you have thrown away yourself. |
12 |
Re-add yourself or re-bootstrap Gentoo Prefix. |
13 |
|
14 |
*** WARNING *** For security reasons, only system administrators should be |
15 |
*** WARNING *** allowed in the portage group. Untrusted users or processes |
16 |
*** WARNING *** can potentially exploit the portage group for attacks such as |
17 |
*** WARNING *** local privilege escalation. |
18 |
|
19 |
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0) |
20 |
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0) |
21 |
Calculating dependencies... done! |
22 |
>>> Verifying ebuild Manifests... |
23 |
|
24 |
|
25 |
>>> Emerging (1 of 1) sys-apps/sed-4.1.4-r1 to / |
26 |
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0) |
27 |
Traceback (most recent call last): |
28 |
File "/gsa/ausgsa/projects/g/gnu//usr/bin/emerge", line 18, in ? |
29 |
retval = _emerge.emerge_main() |
30 |
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/_emerge/__init__.py", line 6835, in emerge_main |
31 |
myopts, myaction, myfiles, mysets, spinner) |
32 |
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/_emerge/__init__.py", line 6251, in action_build |
33 |
retval = mergetask.merge(pkglist, favorites, mtimedb) |
34 |
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/_emerge/__init__.py", line 3918, in merge |
35 |
mode=070, mask=0) |
36 |
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/portage/util.py", line 880, in ensure_dirs |
37 |
perms_modified = apply_permissions(dir_path, *args, **kwargs) |
38 |
File "/gsa/ausgsa-p5/15/gnu/usr/lib/portage/pym/portage/util.py", line 605, in apply_permissions |
39 |
raise OperationNotPermitted(func_call) |
40 |
portage.exception.OperationNotPermitted: chown('/gsa/ausgsa-p5/15/gnu/var/tmp/portage', 0, 0) |
41 |
emergelog(): chown('/gsa/ausgsa/projects/g/gnu/var/log/emerge.log', 0, 0) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
Fabian had asked me to run these commands: |
47 |
|
48 |
python -c 'import pwd; print(pwd.getpwall())' | grep mdmcmull |
49 |
This does not produce any output, nor does: |
50 |
|
51 |
python -c 'import grp; print(grp.getgrall())' | grep mdmcmull |
52 |
It seems the pwd and grp modules only query the local Unix /etc/passwd and /etc/group files. Can anyone confirm that ? |
53 |
|
54 |
In any event, I would appreciate any advice or help in getting this to work. |
55 |
|
56 |
Thanks, |
57 |
Marshall |