rsastry
asked on
rexec and shell scripts
How do I invoke rexec in a shell script? we use solaris 8 and what are the permissions for a non su user? should we make any entries in hosts files to execute this command? Most of the man pages are not much help on executing rexec from shell script. ANy help on this would be great! Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the info. So in solaris what is the alternative for rexec that can be used in a shell script? to make rsh work do I need to do anything specific on the local and remote hosts? (like starting the rsh service ?)
The remote hosts must have an rsh server available and reachable. This won't necessarily be the case on all systems for security reasons. RedHat (and some other Linuxen) don't install or enable insecure protocols like rsh, rlogin, telnet, etc) be default. And quite a few sys admins will disable those on systems that do provide the server by default.
To avoid having to deal with passwords for rsh within a script you can create an .rhosts file in the user's home dir on the remote system (see 'man rhosts' for details).
To avoid having to deal with passwords for rsh within a script you can create an .rhosts file in the user's home dir on the remote system (see 'man rhosts' for details).
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also ssh comes standard on Solaris 9.
rsh and rexec are getting pretty ancient now and existed in a time where security wasn't an issue.
rsh and rexec are getting pretty ancient now and existed in a time where security wasn't an issue.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
.. and don't forget to remove the .rhosts files, and/or disable reading it in sshd_conf
What's the difference? rexec is a generalization of rsh that allows more file descriptor plumbing than the standard stdin/stdout/stderr.
HP-UX, for example, has a seperate rexec command.