I find what happened ! <br>At the First time useradd runs well.<br>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)<br>But i can&#39;t understand what would cause that !!!<br>
<br>[eric@wenjia etc]$ ll -d /var/lib/mock/dist-foo-build-62-14/root/builddir<br>drwx------ 2 torrent mock 4096 04-07 08:28 /var/lib/mock/dist-foo-build-62-14/root/builddir<br><br>[eric@wenjia etc]$ grep torrent /etc/passwd<br>
torrent:x:495:492:BitTorrent Seed/Tracker:/var/lib/bittorrent:/sbin/nologin<br><br>[eric@wenjia etc]$ grep 494 /etc/passwd<br>kojibuilder:x:494:490::/builddir:/bin/bash<br><br>[eric@wenjia etc]$ grep mock /var/lib/mock/dist-foo-build-62-14/root/etc/passwd <br>
mockbuild::495:491::/builddir:/bin/bash<br><br><br>[root.log]<br>...<br>DEBUG backend.py:621:  ========== /var/lib/mock/dist-foo-build-62-14/root/builddir: not exist. uid=0,euid=0,494=kojibuilder,495=torrent<br>DEBUG util.py:284:  Executing command: /usr/sbin/useradd -m -u 494 -g 491 -d /builddir -n mockbuild<br>
DEBUG util.py:323:  Child returncode was: 0<br>DEBUG backend.py:629:  ========== /var/lib/mock/dist-foo-build-62-14/root/builddir: kojibuilder:mock uid=0,euid=0,494=kojibuilder,495=torrent<br>...<br>DEBUG backend.py:621:  ========== /var/lib/mock/dist-foo-build-62-14/root/builddir: not exist. uid=0,euid=0,494=kojibuilder,495=torrent<br>
DEBUG util.py:284:  Executing command: /usr/sbin/useradd -m -u 494 -g 491 -d /builddir -n mockbuild<br>DEBUG util.py:323:  Child returncode was: 0<br>DEBUG backend.py:629:  ========== /var/lib/mock/dist-foo-build-62-14/root/builddir: torrent:mock uid=0,euid=0,494=kojibuilder,495=torrent<br>
...<br>(I have added some debug info)<br><br><br><br><br><br><div class="gmail_quote">2010/4/2 Mike McLean <span dir="ltr">&lt;<a href="mailto:mikem@redhat.com">mikem@redhat.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 03/31/2010 09:48 PM, Eric Zhong wrote:<br>
&gt; If i use mock clean, does it break the data of koji ?<br>
<br>
</div>When I suggested this, I assumed you were using mock directly (because I<br>
have never seen kojid give this error and am having a hard time<br>
understanding how it could).<br>
<br>
If this is happening in koji, then mock clean will not help.<br>
<div><div></div><div class="h5">--<br>
buildsys mailing list<br>
<a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a><br>
</div></div></blockquote></div><br>