[pacman-dev] [PATCH] Remove --asroot switch from makepkg.

Miklos Vajna vmiklos at frugalware.org
Wed Jun 18 12:02:37 EDT 2008

On Wed, Jun 18, 2008 at 10:40:30AM -0500, Dan McGee <dpmcgee at gmail.com> wrote:
> You do realize this is the *exact* same thing as running as root,
> which is what this option was meant to notify you about and scare you
> away from?

actually running makepkg as root would be something reasonable in case
makepkg would support building in chroot (like pacman-g2's makepkg

in that case the flow would be: su/sudo -> chroot -> drop privileges ->

but as long as this is not the case, running makepkg as root or _any
other valuable user_ makes no sense.

i think this is a point many makepkg user miss: for example if the
buildscript has 'rm -rf ~' in build(), then it's possible that the
problem will be bigger if you run it as your own user!

to sum up: we encourage users to run makepkg as root, because this way
it can drop privileges as a separate user where makepkg can't do
anything problematic.

maybe this is something worth porting from pacman-g2, it's your
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20080618/3afc1a64/attachment.pgp>

More information about the pacman-dev mailing list