1847791 Members
2858 Online
104021 Solutions
New Discussion

rsh nt to HP-UX

 
SOLVED
Go to solution
John Flanagan
Regular Advisor

rsh nt to HP-UX

I am trying to rsh from my NT pc to a unix box. This works fine if both user names are the same but if I try to use the -l option it fails.

If I am logged on as fngj on my nt pc the following command will execute properly

rsh ptihp1 bdf

When I am logged on as administrator the following command fails

rsh ptihp1 -lfngj bdf

Regards,

John.
8 REPLIES 8
Bill McNAMARA_1
Honored Contributor

Re: rsh nt to HP-UX

harry d brown jr
Honored Contributor

Re: rsh nt to HP-UX

John,

You are getting this, correct?

C:\>rsh pbctst -l root bdf
pbctst.paychex.com: remshd: Login incorrect.
rsh: can't establish connection

C:\>


TO get it to work, you will need to put a .rhosts entry in for the user specified by "-l".

live free or die
harry
Live Free or Die
Darrell Allen
Honored Contributor

Re: rsh nt to HP-UX

Hi John,

Either /etc/hosts.equiv or the .rhosts file in fngj's home directory on ptihp1 has an entry for your NT pc. It apparantly is either:

name_of_NT_pc

-or-

name_of_NT_pc fngj


The first case implicitly limits the user to the one whose home directory it's in (fngj).

The second case explicitly limits the user to fngj.

You need to add a line like:

name_of_NT_pc administrator

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
harry d brown jr
Honored Contributor
Solution

Re: rsh nt to HP-UX


John,

on the unix box, go to the user's "fngj" home directory and put "+ +" into the .rhosts file. After the test is successful, change the "+ +" to your PC's name or IP.

live free or die
harry
Live Free or Die
Bill McNAMARA_1
Honored Contributor

Re: rsh nt to HP-UX

just to add,
I'm Administrator on NT

and added this to roots ~/.rhosts

mypcname +
~
~

The + accepts the user names of all lengths...

Later,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: rsh nt to HP-UX

Hey John, whereabouts in Ireland are you?
I'm going to Dublin for St Paddys day this weekend..
hope it doesn't rain so hard!

Later,
Bill
It works for me (tm)
John Flanagan
Regular Advisor

Re: rsh nt to HP-UX

Everything works fine if I use + for the user name and supply a valid unix user name in the -l option but I can't get it to work when I specify a user name in /etc/hosts.equiv or .hosts.

also

Is it possible to specify a subnet instead of a computer name?

Thanks,

John.
Frank Slootweg
Honored Contributor

Re: rsh nt to HP-UX

On the HP-UX side you should have in ~uxuser/.rhosts :

NThost NTuser

Then on NT you do :

rsh uxhost -l uxuser uxcommand

I.e. with "uxhost -l uxuser" you specify where you 'go to' and 'to' which user you go. With .rhosts you specify where you 'come from' and as which user you come.