Artificial intelligent assistant

How enable non-privileged user to connect using rsh? 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.

I got this solved.
But unfortunately I do not discover why this happen.

When I run at hostA :


# getcap /bin/rsh


They return nothing.
At hostB they return :


getcap /bin/rsh
/bin/rsh = cap_net_bind_service+ep


I just remove the package and reinstalled using `yum` and then they get the permissions.

But why that occur at first ? What is missing at first time it was installed ? Weird.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 1edcb6ce17b5713d43f54969ad54ac33