Mock: Permission denied

Eric Zhong ericiszhongwenjia at gmail.com
Wed Apr 7 00:42:11 UTC 2010


I find what happened !
At the First time useradd runs well.
At  the second time, useradd cmd has specified the uid with 494 (kojibuilder
in host), but  the result is 495 in chroot(torrent in host)
But i can't understand what would cause that !!!

[eric at wenjia etc]$ ll -d /var/lib/mock/dist-foo-build-62-14/root/builddir
drwx------ 2 torrent mock 4096 04-07 08:28
/var/lib/mock/dist-foo-build-62-14/root/builddir

[eric at wenjia etc]$ grep torrent /etc/passwd
torrent:x:495:492:BitTorrent Seed/Tracker:/var/lib/bittorrent:/sbin/nologin

[eric at wenjia etc]$ grep 494 /etc/passwd
kojibuilder:x:494:490::/builddir:/bin/bash

[eric at wenjia etc]$ grep mock
/var/lib/mock/dist-foo-build-62-14/root/etc/passwd
mockbuild::495:491::/builddir:/bin/bash


[root.log]
...
DEBUG backend.py:621:  ==========
/var/lib/mock/dist-foo-build-62-14/root/builddir: not exist.
uid=0,euid=0,494=kojibuilder,495=torrent
DEBUG util.py:284:  Executing command: /usr/sbin/useradd -m -u 494 -g 491 -d
/builddir -n mockbuild
DEBUG util.py:323:  Child returncode was: 0
DEBUG backend.py:629:  ==========
/var/lib/mock/dist-foo-build-62-14/root/builddir: kojibuilder:mock
uid=0,euid=0,494=kojibuilder,495=torrent
...
DEBUG backend.py:621:  ==========
/var/lib/mock/dist-foo-build-62-14/root/builddir: not exist.
uid=0,euid=0,494=kojibuilder,495=torrent
DEBUG util.py:284:  Executing command: /usr/sbin/useradd -m -u 494 -g 491 -d
/builddir -n mockbuild
DEBUG util.py:323:  Child returncode was: 0
DEBUG backend.py:629:  ==========
/var/lib/mock/dist-foo-build-62-14/root/builddir: torrent:mock
uid=0,euid=0,494=kojibuilder,495=torrent
...
(I have added some debug info)





2010/4/2 Mike McLean <mikem at redhat.com>

> On 03/31/2010 09:48 PM, Eric Zhong wrote:
> > If i use mock clean, does it break the data of koji ?
>
> When I suggested this, I assumed you were using mock directly (because I
> have never seen kojid give this error and am having a hard time
> understanding how it could).
>
> If this is happening in koji, then mock clean will not help.
> --
> buildsys mailing list
> buildsys at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100407/70e71661/attachment.html 


More information about the buildsys mailing list