I have problems calling a remote command by different users on different machines. This remote command shall be executed on one single machine and the rsh-session shall be terminated immediately after successful execution of this command. Multiple users can execute this command at the same time.
I know that
rsh is insecure, but this isn't an issue here.
My problem here is the configuration of the remote system in regard to privileges and location of the script.
Locally, the rsh command is simply called like this:
rsh $HOST -l $USER remote_command
Some concrete questions here:
- Do I need a special user (
$USER) unlike root to execute the remote command?
- Which privileges should this user have?
- Only the privileges to execute the necessary commands and read and write the files that this commands use?
- In which directory should the script be located? I would place it in
/usr/bin, but I don't know if that's a good idea.