[Buildbot-devel] How to not run as root?
Alexander Staubo
alex at byzantine.no
Sat Nov 6 02:59:53 UTC 2004
I don't know Twisted at all, so forgive me if this is an obvious question.
I am setting up BuildBot, but I want both the master and slaves to run
as a specific user: primarily for security reasons, but also because the
build/test process need to run as a certain user acount.
However, if I try running the master with:
$ su buildbot -c 'buildbot start .'
then I get the following exception in the log (pardon the line wrapping):
Traceback (most recent call last):
File "/usr/local/bin/twistd", line 36, in ?
run()
File
"/usr/local/lib/python2.3/site-packages/twisted/scripts/twistd.py", line
184, in run
app.run(runApp, ServerOptions)
File
"/usr/local/lib/python2.3/site-packages/twisted/application/app.py",
line 205, in run
runApp(config)
File
"/usr/local/lib/python2.3/site-packages/twisted/scripts/twistd.py", line
175, in runApp
startApplication(config, application)
File
"/usr/local/lib/python2.3/site-packages/twisted/scripts/twistd.py", line
160, in startApplication
shedPrivileges(config['euid'], process.uid, process.gid)
File
"/usr/local/lib/python2.3/site-packages/twisted/scripts/twistd.py", line
134, in shedPrivileges
switchUID(uid, gid, euid)
File "/usr/local/lib/python2.3/site-packages/twisted/python/util.py",
line 605, in switchUID
setgid(gid)
OSError: [Errno 1] Operation not permitted
Thanks.
Alexander.
More information about the devel
mailing list