[Buildbot-devel] How to compile code as root user
Dustin J. Mitchell
dustin at zmanda.com
Mon Jun 21 01:42:45 UTC 2010
On Sun, Jun 20, 2010 at 2:43 PM, Ben Hearsum <bhearsum at mozilla.com> wrote:
> We've got a particular part of build system which requires root access
> because of a tool on OS X. Our workaround was to wrap the small part
> which requires root access in a binary that is setuid root. Then the
> build system that can call it without runnng compretely as root.
We did something similar, also on OSX. We added the necessary
commands to sudoers, and ran them with 'sudo', but either way works.
Incidentally, this quickly became annoying, so we switched to doing
OSX packaging piece by piece, using a shell script, and then packaging
it up with hdiutil. We've been much happier ever since.
Open Source Storage Engineer
More information about the devel