PipelineFX Forum

Qube! => Jobtypes and Applications => Topic started by: charlow on July 20, 2007, 12:11:02 AM

Title: Using Commandline Job to Install Software?
Post by: charlow on July 20, 2007, 12:11:02 AM
Hi -

I was curious if it was possible to use the Qube Commandline Job to install software or run other administrative functions?

I'm pretty sure if I want to do a command like rpm -ivh /mnt/myserver/mysoftware.rpm - that process has to be run as root, but all jobs right now are all being run as qubeproxy. And clearly I wouldn't want to run all my jobs as root, just once in a while for these sort of admin functions...

-Curtis
Title: Re: Using Commandline Job to Install Software?
Post by: shinya on August 15, 2007, 02:43:18 AM
Hi Curtis,

My apologies for letting this inquiry go unanswered.

If you're running in proxy mode, all job processes are run under
the qubeproxy user's ownership, and they will be limited to its
privileges.  On Unix (OSX, Linux), I suppose that you could set
the "sudoers" on the worker machines so that the qubeproxy user
is permitted to run certain commands (such as rpm) as root.

This, of course, would allow anybody using Qube at your site to run those
commands, so please be careful.

Please consult your system's manual pages on "sudo" "visudo" and "sudoers".