[nylug-talk] local/remote execution permissions help please?

R. Mariotti r.mariotti at fdcx.net
Mon Feb 5 10:16:28 EST 2007


Duh!!!

I'm digging myself into a hole this morning with a remote start issue. 
Perhaps some of you can help me float again???

I have TWO linux machines... (A) and (B)...

When a certain job is run by a non-root, limited privilege user on 
machine (A) the very last thing it must do is start a job on machine (B).

The way I've approached this is to create a shell script in /usr/bin 
called (for lack of a better name) rpcstart.  This script issues the 
command:
  ssh $1 nohup $2 $3 $4 $5 $6 $7 $8 $9 \&
which, using the parameters passed, should start the program identified 
in parameter $2 on the server $1 and pass parameters $3, $4, etc to it.

In testing I had this working.  In production it fails and I cannot yet 
determine why.  But, I surmise that its a permissions thing.

This morning to test this I logged onto server (A) as the name of the 
production user and tried executing the command.  I got permissions 
errors.  I then added this user to the sudoers file and still get the 
errors.

I "Think" I'm looking at this the correct way.  I "Think" I'm 
understanding the mechanism to accomplish this... but I "Think" I'm 
missing some part of this somewhere.

I was hoping someone could enlighten me (and I am sure others) and 
describe what techniques I must use to be able to accomplish what should 
be a rather simple task?

Thanks a million for any advise.

bobmct


More information about the nylug-talk mailing list