Bug#344958: [Pbuilder-maint] Bug#344958: pbuilder: creates files with
weird owner/group
Lars Wirzenius
liw at iki.fi
Thu Jan 5 17:44:54 UTC 2006
to, 2006-01-05 kello 08:37 +0900, Junichi Uekawa kirjoitti:
> > Building a package with "sudo pbuilder build --buildtarget foo" puts
> > files in foo that are owned by user 1234, group 1234 (neither of which
> > exists on the system). (Without --buildtarget they are put
> > in /var/cache/pbuilder/result, but the same uid/gid). This seems
> > strange.
>
> This is due to pbuilder now running inside fakeroot by default. The
> default value '1234' (randomly picked) can be anything that isn't used
> by other user, so pbuilder session will have a hard time interacting
> with outside of chroot.
I'm not sure I understand why the uid of the person who invoked pbuilder
can't be used, or why pbuilder (which is run as root) can't chown the
resulting files to the person who invoked it. (See $SUDO_UID and
$SUDO_GID.)
More information about the Pbuilder-maint
mailing list