SUMMARY:cannot get rsh or .rhosts to work

From: Markus Waldorf (waldorfm@rferl.org)
Date: Mon Jan 13 2003 - 21:48:30 EST


Sorry the problem was indeed silly. It was just simply a matter of using the
right command syntax. Although I read the man page dozens of times I did not
notice it. So the correct syntax is :

#rsh -l waldorfm photon03.rferl.org ls

The problem was noticed by a technician from HP who was here tonight to
replace a PCI bus in one of our servers.

Original message:

Hello,

I'm having strange problems trying to setup .rhosts. I somehow got it
working in the past, but it only worked if .rhosts had the owner of the
user's account, not if it was root, as lined out in the man page for rhosts.
But now I cannot make it to work at all. It must be something stupid. What
could be wrong please?

root@photon03>ls -l | grep .rhosts
-rw------- 1 waldorfm user 84 Jan 13 14:44 .rhosts
root@photon03>

This seems to be correct according to the .rhosts man page. The onwer of the
.rhosts file is the account owner - I also tried chown root .rhosts, with
the same effect. The permission is set correctly to 600.

The .rhosts file in the home directory of user waldorfm reads:

root@photon03>cat .rhosts
photon03.rferl.org root
photon03.rferl.org waldorfm
photon03 root
photon03 waldorfm
root@photon03>

Still rsh gives a permission error:

root@photon03>rsh photon03.rferl.org waldorfm ls
Permission denied.
root@photon03>

/etc/hosts shows:
127.0.0.1 localhost
172.16.44.44 photon03.rferl.org photon03
192.168.20.244 dnserver1.rferl.org dnserver1 #DNS nameserver

Best regards
Markus Waldorf
RFE/RL, Inc.



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:04 EDT