Bug#337582: [Pbuilder-maint] Bug#337582: automatic creation of pbuilder user would be helpful

2005-11-10 Thread Junichi Uekawa
Hi,
  2. running pbuilder under user privilege will require fakeroot 
  which does not always work.
 
 In which cases does it work ? In which it doesn't ?
 
 It would be really helpful if one could use pbuilder without being root
 on the machine. For example, I have a user account to a PPC Debian box,
 but I can't run pbuilder on it because I'm not root. User-Mode-Linux is
 not a solution here, because it doesn't work on PowerPC. What's the
 solution in that case ?


fakeroot sometimes did not work on some architecture.

There were several packages which didn't work.
Some packages used to do 'mount -o loop' in their build script
that required real root privilege.
(old boot-floppies used to do this)

I would guess it's a rarer case now.


regards,
junichi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#337582: [Pbuilder-maint] Bug#337582: automatic creation of pbuilder user would be helpful

2005-11-07 Thread Junichi Uekawa
Hi,

   I may be missing some technical limitations of this that weren't ovious
   in the documentation, but it seems to me that the pbuilder Debian
   package could automatically create a pbuilder user, in a manner similar
   to many other programs, rather than relying on the user to do so
   themselves.
  
  What user does pbuilder require that it doesn't create?
 
 It doesn't *require* one, but according to section 6. of the User's
 Manual:
 
pbuilder requires full root privilege when it is satisfying the
build-dependencies, but most packages do not need root privilege, or
fail to build when they are root. pbuilder  can create a user which
is only used inside pbuilder  and use that user id when building, and
use the fakeroot command when root privilege is required.
 
 Further, it is generally best practices to resort to full root
 privileges only when aboslutely necessary, and to work with user
 privileges whenever possible.
 
 I see two obvious ways to make such desirable behavior the default:
 
 1) Automatically create a pbuilder user (as already suggested
 in /etc/pbuilderrc), as originally suggested in this bug report.

Hmm... pbuilder user is used inside the chroot, and nothing 
to do with what happens outside; so that's one thing you 
might have misunderstood from my text.

The reason for not making user 'pbuilder' with userid 1234 per
default is that 

1. the user might already be used outside the chroot

2. running pbuilder under user privilege will require fakeroot 
which does not always work.


However, I think making fakeroot default might be a good idea
since fakeroot is already prolific.


regards,
junichi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#337582: [Pbuilder-maint] Bug#337582: automatic creation of pbuilder user would be helpful

2005-11-07 Thread Charles Fry
 The reason for not making user 'pbuilder' with userid 1234 per
 default is that 
 
 1. the user might already be used outside the chroot

I guess I don't see the problem that this implies. Are you assuming that
the pbuilder user exists only inside of the chroot, or both inside and
out?

 2. running pbuilder under user privilege will require fakeroot 
 which does not always work.
 
 
 However, I think making fakeroot default might be a good idea
 since fakeroot is already prolific.

Agreed. :-) And that would certainly be enough to close this bug. ;-)

Charles

-- 
Makes good because it's made good
Burma-Shave
http://burma-shave.org/jingles/1939/makes_good_because


signature.asc
Description: Digital signature


Bug#337582: [Pbuilder-maint] Bug#337582: automatic creation of pbuilder user would be helpful

2005-11-06 Thread Matt Kraai
On Fri, Nov 04, 2005 at 09:06:39PM -0500, Charles Fry wrote:
 I may be missing some technical limitations of this that weren't ovious
 in the documentation, but it seems to me that the pbuilder Debian
 package could automatically create a pbuilder user, in a manner similar
 to many other programs, rather than relying on the user to do so
 themselves.

What user does pbuilder require that it doesn't create?

-- 
Matt


signature.asc
Description: Digital signature


Bug#337582: [Pbuilder-maint] Bug#337582: automatic creation of pbuilder user would be helpful

2005-11-06 Thread Charles Fry
  I may be missing some technical limitations of this that weren't ovious
  in the documentation, but it seems to me that the pbuilder Debian
  package could automatically create a pbuilder user, in a manner similar
  to many other programs, rather than relying on the user to do so
  themselves.
 
 What user does pbuilder require that it doesn't create?

It doesn't *require* one, but according to section 6. of the User's
Manual:

   pbuilder requires full root privilege when it is satisfying the
   build-dependencies, but most packages do not need root privilege, or
   fail to build when they are root. pbuilder  can create a user which
   is only used inside pbuilder  and use that user id when building, and
   use the fakeroot command when root privilege is required.

Further, it is generally best practices to resort to full root
privileges only when aboslutely necessary, and to work with user
privileges whenever possible.

I see two obvious ways to make such desirable behavior the default:

1) Automatically create a pbuilder user (as already suggested
in /etc/pbuilderrc), as originally suggested in this bug report.

or

2) Be default drop to the privileges of the user who invoked pbuilder to
begin with.

Charles

-- 
In Cupid's little
Bag of trix
Here's the one
That clix
With chix
Burma-Shave
http://burma-shave.org/jingles/1947/in_cupids_little


signature.asc
Description: Digital signature