1851742 Members
1900 Online
104062 Solutions
New Discussion

Re: rsh and kerebros pbm

 
SOLVED
Go to solution
Shalini Sharma
Advisor

rsh and kerebros pbm

Hi Everyone,

I am trying to do:
# rsh uname
from any linux(redhat) machine and it just hangs over there, the cursor keeps blinking/waiting.

If I do
# rsh
from any linux(redhat) machine it gives the error:
krb_sendauth failed: You have no tickets cached
and then asks for
password:
After i give the password it works.

Please advice how can i do
# rsh uname etc.

Tried searching a lot on google and trying some commands, but no luck :(
Please guide.
Thanks Much,
Puneet.
9 REPLIES 9
Giacomo TOTTI
Advisor

Re: rsh and kerebros pbm

Hello,
are you sure that in your HP system the /.rhosts file is correct configured with the name of the clients?
Tries to insert a + within these file and tries again, if these OK, than edit again whit hostname and user!!

Giacomo
Shalini Sharma
Advisor

Re: rsh and kerebros pbm

Hi Giacomo,

Thanks for the prompt reply.

I added in .rhosts file:
root

I am able to do
# rsh and now it does NOT asks for a password and goes directly into the HPUX machine.

But I am still not able to do from linux machine:
# rsh uname

Please guide
Puneet.
melvyn burnard
Honored Contributor

Re: rsh and kerebros pbm

try using the full path for the command:
rsh /usr/bin/uname

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ermin Borovac
Honored Contributor

Re: rsh and kerebros pbm

It's probably firewall (iptables?) on the Linux system.

'rsh ' uses remshd on the server side
'rsh ' uses rlogind on the server side

remshd from HP-UX system is making inbound connection to your Linux system to pass stderr from .

So if you do have firewall on your Linux system disable it temporarily to see if it helps.
Shalini Sharma
Advisor

Re: rsh and kerebros pbm

Thanks for reply ,,but it did not help :(
Shalini Sharma
Advisor

Re: rsh and kerebros pbm

thanks for reply Ermin .thrs no firewall on linux
Ermin Borovac
Honored Contributor
Solution

Re: rsh and kerebros pbm

Any entries in /var/adm/inetd.sec on the HP-UX side?

What happens when you run rsh as /usr/bin/rsh on the Linux system?
Giacomo TOTTI
Advisor

Re: rsh and kerebros pbm

HI,
I understand that the problem is not on the Server side, but on the client side.
In other word you have to configure the "tickets" whith a kerberos command (like kinit and klist) on your linux system,

regards

Giacomo
Shalini Sharma
Advisor

Re: rsh and kerebros pbm

Hi Ermin and Giacomo,

TONS of THANKS for your strong support and help.

Ermin: it worked with using the following coomand on Linux machine(s)
# /usr/bin/rsh uname

Giacomo: Thanks to you as well for your replies. the pbm was on the HP side only because I was getting the same error from differenr linux machines.

God Bless and keep up the good work :)
Take Care,
Puneet (India)