[Buildbot-devel] Running tests as a particular user
Steve 'Ashcrow' Milner
smilner at redhat.com
Wed May 27 13:42:06 UTC 2009
On 26/05/09 21:32 -0400, Dustin J. Mitchell wrote:
>On Tue, May 26, 2009 at 8:40 PM, Malini Das <malini at sharethrough.com> wrote:
>> I'm new to using buildbot, and I was reading through the manual but I didn't
>> get much help for my problem. My issue is that part of my test case must be
>> run as a particular user (since I have to call a script that only a certain
>> user can run prior to running the tests) and I was wondering, is there
>> anyway to run a test through buildbot as a particular user? Thanks!
>
>Probably run a passwordless "sudo" as a shell command?
>
>Dustin
>
>--
>Open Source Storage Engineer
>http://www.zmanda.com
>
>------------------------------------------------------------------------------
>Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>is a gathering of tech-side developers & brand creativity professionals. Meet
>the minds behind Google Creative Lab, Visual Complexity, Processing, &
>iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
>Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
>_______________________________________________
>Buildbot-devel mailing list
>Buildbot-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/buildbot-devel
Just make sure to limit the sudo access to the specific commands
needed. http://linsec.ca/Using_Sudo_to_Limit_Access looks like a good
tutorial.
This might be a cool addition as well to add to buildbot ... extending
shell command or a class that wraps commands and attempts to run a
specified user. Probably something for 1.0 :-).
--
kthxbye!
Steve 'Ashcrow' Milner
Agent of Infosec
IRC: ashcrow
GnuPG ID: 28DFD4BE
"In the heat of conversation I may have said certain things I believe
to be untrue. The alleged lie that you might have heard me saying
allegedly moments ago ... thats a parasite that lives in my neck."
-- Tad Ghostal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20090527/4e4f69ac/attachment.bin>
More information about the devel
mailing list