Rexec client does not work in RH 7.0. I localized the problem to the call to getservbyname in the rexec source. This call returns the wrong port number for establishing the remote connection. The port number returned by the following code fragment is port 2 instead of port 512 as listed in /etc/services service = getservbyname("exec","tcp"); port_exec = service->s_port; as revealed by gdb "print port_exec" after breaking on the appropriate line in rexec.c (132). Setting the value of port_exec to 512 corrects the problem and allows the rexec command to function correctly and terminate normally.
*** This bug has been marked as a duplicate of 18886 ***