Ability to switch user to execute certain task

(imported topic written by srage91)

Hi,

Currently, bigfix client is registered under root user, and thus I think any action we performed with it is under root ownership right? especially ownership of transferred file.

Let’s say, if I wanna start a service/process (non-system service/process, owned by one of our in-house app) on a remote unix machine from my bigfix server (window machine), is there any command that I can throw into my custom action fixlet to tell it to switch user and perform a certain task?

Thanks

Eugene (ET)

(imported comment written by BenKus)

Hey Eugene,

I am not sure about this myself… If you were going to write a shellscript to do this, how would you do it?

Ben

(imported comment written by srage91)

Only tested from bigfix to unix box

From the custom fixlet, we can issue:

run su -

user

-c "

command

"

Regards

Eugene

(imported comment written by BenKus)

You should write a little shell script to do this… here is an example:

http://forum.bigfix.com/viewtopic.php?pid=11082#p11082

Ben

Hi,

is there any solution to switch user for a Windows Client. I would like to perform a task as a different user then the Client agent is running.

Thanks for helping.
Josef