[Buildbot-devel] How to not run as root?

Alexander Staubo alex at byzantine.no
Mon Nov 8 16:10:24 UTC 2004

Brian Warner wrote:
>>However, if I try running the master with:
>>$ su buildbot -c 'buildbot start .'
>>"/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
> Curious.. I haven't seen this problem before. My hunch is that the .tap file
> was created by a different user (i.e. 'buildbot master' was run by one user,
> but 'buildbot start' is being run by a different one), and twistd is trying
> to switch back to that userid when it starts, and switching userids requires
> root privileges. This would be annoying, and the brief testing I just did
> suggests that it's probably something else, but it's worth a shot doing both
> the 'buildbot master' and the 'buildbot start' as the same user.

The master was created as root. Good point -- I'll try creating it as 
the user I'm trying to run it as. Thanks. :)


More information about the devel mailing list