1833777 Members
2183 Online
110063 Solutions
New Discussion

Re: rsh

 
Alan Bocutt
Occasional Contributor

rsh

I am porting a number os scripts from Digital UX to HP and have come across a
problem I would like some help with.

As part of the script I need to execute a rsh back to the same box under a
specific userid this script runs on the cron and changes user to allow an
subsequent action to complete. The problem is that HP remsh will allow me to
call a shell as the new user but then wants that users password even if the
calling script is root.

Any help would be much appreciated
2 REPLIES 2
Fernando Santana
Frequent Advisor

Re: rsh

Hi, try one of the following.

1. Include the server name in /.rhosts.
If your comming from another server, include that
server in your /.rhosts.

2. If you're remsh to the same node that's running
the program, maybe you just do:

su - userX -c "Commands;Scripts"
Berlene Herren_1
Super Advisor

Re: rsh

Alan, this is how I check the set up between two HPs.

Telnet from digital to HP
telnet HP
who -Rm >> returns either shortname or fully qualified name. This is the name
that need to be in the .rhosts file

telnet from hp to digital
telnet digital
who -Rm >> same as above...

Also, trying moving your /var/../inetd.sec file out of the way first.

Berlene