I have two hosts with Red Hat 7.4 , HostA and HostB.
The rsh-server and rsh packages was installed in both.
At both hosts, the rsh deamon was activated, the commands rsh,rlogin,rexec was added to /etc/securetty, at /etc/hosts.equiv the HostA and HostB was added.
From hostA, with root, when I run rsh hostb, connects successfully without ask password.
From hostA, with any other user, give the error : rcmd: socket: Permission denied.
From hostB, with root, when I run rsh hosta, connects successfully without ask password.
From hostB, with any other user, connects successfully without ask password.
I already try add the set bit : chmod +a $(which rsh) , but have no effect.
The SELINUX is disabled on both hosts.
The firewall is disabled on both hosts.
CAP_NET_ADMINorCAP_NET_BIND_SERVICE(see stackoverflow.com/questions/1956732/… for more info)rshis notsshin disguise, from memory access control is set byhost.allow/host.denyand.rhostsin$HOMEdir.