[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Authentication problem with pbuilder

On Wed, Sep 28, 2005 at 10:06:01AM +0200, Andreas Tille wrote:
> On Wed, 28 Sep 2005, Ricardo Mones wrote:
> >>I guess I have to set a further sudo permission here but for what program?
> >>It is 'sudo su' ?  I would not really like this even if it is convinient.
> >
> > For /usr/bin/pdebuild, and invoke "sudo pdebuild".
> Uhmm, why that?  I do not want to run the whole process as root.  This
> would immediately trigger the feeling I have to write a bug report.
> > BTW, this question is more for d-mentors than for d-devel ;-)
> If your answer is really correct I'm happy that I posted it here for
> the sake of lazyness, because I'm not subscribed to d-mentors.  IMHO
> package building should work with fakeroot and should not require root
> permissions.

It works with fakeroot, the user the build runs at is configureable in
/etc/pbuilderrc. The reason you require root for the whole thing is because of
unpacking the chroot, chrooting itself, installing build dependencies, and
purging the chroot again.

Only the part between build dependencies and purging the chroot (the actual
package building) can do without root privileges, and pbuilder will drop root
appropriately in that stage, and use (by default) fakeroot where needed. See
the BUILDSOURCEROOTCMD="fakeroot" configuration entry in /etc/pbuilderrc.


Jeroen van Wolffelaar
Jeroen@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)

Reply to: