Red Hat Bugzilla – Bug 98100
rsh, rlogin and rcp is not working
Last modified: 2015-03-04 20:12:29 EST
Rsh also does not work when running it on the system to a remote sys:
rsh [remote sys] date
poll: protocol failure in circuit setup
Description of problem:
We're running 7.1(that's the highest version the box can take) on a compaq dual
CPU proliant 1600 box. We'd installed the rsh-server package and were tryingt
to run rsh rlogin and rcp commands as root and as other users. We have
the /etc/hosts file and the /.rhosts file entries set.
Rsh and rlogin is working on the system itself after updating
the /etc/securetty file with rsh and rlogin entries. It still does work though
if we try to run the rsh/rlogin/rcp commands from other systems. We've updated
the /etc/pam.d/rsh file with this entry:
auth required /lib/security/pam_rhosts_auth.so
The /var/log/messages file shows:
Jun 26 11:07:51 dhcp-241-7 pam_rhosts_auth: allowed to
root@localhost as root
Jun 26 11:07:51 dhcp-241-7 in.rshd: rsh denied to
root@localhost as root: Permission denied.
Jun 26 11:07:51 dhcp-241-7 in.rshd: rsh command was 'date'
How can we make it work for root and for other users? Even though it's
suggested not to, we'd need a work around solution.
Version-Release number of selected component (if applicable):
rsh-0.17-2.5 as client and rsh-server-0.17-5
Steps to Reproduce:
1.Log onto a system that is listed in the .rhosts file
2.rsh [system] date
3.get connection failure error message after a while
This is mainly a setup and therefore support question (for which you should
contact support and not write any bugzilla entries).
After your description i'd check your DNS setup and .rhosts resp. hosts.equiv
entries to contain the users and the FQDN (full qualified domain names) for the
hosts. Otherwise rsh/rlogin are likely to fail during authentification.
Hope this helps,
Read ya, Phil