SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
running job as non-agent user

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
running job as non-agent user
Author Message
Brian Kimbel



Joined: 14 Sep 2006
Posts: 5

Post running job as non-agent user Reply with quote

I'm having trouble connecting to Unix as a second user. I've installed the Java
Scheduler as "user_a", and am running the agent as that user. The same user owns
many programs that I am using the scheduler to run. However, there are a number
of programs owned by a second user, "user_b". When I try to run a job as user_b,
it always fails. I created a test job that touches a file. When I run as user_a
it works fine. As user_b it fails. I can test the agent connection with both
users successfully. The job fails whether I run the master from either Windows
or the Unix box. Both user_a and user_b are in the same Unix group, and I have
even set all the file rights in the scheduler to "777". I am not using "PAM",
though. Is that a requirement for using other users?

Thu Sep 21, 2006 12:23 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: running job as non-agent user Reply with quote

To be able to run processes as multiple users you need to start agent as root. Only root has sufficient permissions for that.

Alternatively you can run 2 agent instances 1 for each user started under different user accounts and configure them to use different port numbers.
You can then setup 2 different connection profiles in the scheduler and point each provide to the right agent/port.

: I'm having trouble connecting to Unix as a second user. I've installed the
: Java
: Scheduler as "user_a", and am running the agent as that user. The
: same user owns
: many programs that I am using the scheduler to run. However, there are a
: number
: of programs owned by a second user, "user_b". When I try to run a
: job as user_b,
: it always fails. I created a test job that touches a file. When I run as
: user_a
: it works fine. As user_b it fails. I can test the agent connection with both
: users successfully. The job fails whether I run the master from either
: Windows
: or the Unix box. Both user_a and user_b are in the same Unix group, and I
: have
: even set all the file rights in the scheduler to "777". I am not
: using "PAM",
: though. Is that a requirement for using other users?

Thu Sep 21, 2006 12:58 pm View user's profile Send private message
Brian Kimbel



Joined: 14 Sep 2006
Posts: 5

Post Re: running job as non-agent user Reply with quote

How do I configure them to use different ports without the GUI? Is there a
command-line option to specify the port?

: To be able to run processes as multiple users you need to start agent as
: root. Only root has sufficient permissions for that.

: Alternatively you can run 2 agent instances 1 for each user started under
: different user accounts and configure them to use different port numbers.
: You can then setup 2 different connection profiles in the scheduler and point
: each provide to the right agent/port.

Thu Sep 21, 2006 1:26 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: running job as non-agent user Reply with quote

Edit preferences.xml in vi or other text editor and modify "port" and "remotePort" parameters as desired. Anything which is not used by other programs should be good. To verify what is in use, you can run run netstat -a

Hope this helps

: How do I configure them to use different ports without the GUI? Is there a
: command-line option to specify the port?

Thu Sep 21, 2006 2:37 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.