SUMMARY: rsh, rcmd

From: Clift Robert T CONT DLVA <CliftRT_at_NSWC.NAVY.MIL>
Date: Thu Jun 28 2001 - 11:52:02 EDT
Original Question:
> I have two workstatations that are running 2.6 and CDE and a server with
> 2.5.1. The first workstation will let me run 
> "rsh -l user server ls -al" and it works fine, the second system returns
an
> error of "rcmd: socket: permission denied". I have checked the hosts.equiv
> file and if I telnet from the second system to the server and exec "who"
the
> host name matches /etc/hosts. TIA


Thanks to Dave Mitchell and Dan Astoorian, they both hit it right on the
head!


This usually indicates that /usr/bin/rsh on the second system is no
longer setuid-root.  (Rsh requires that the connection originate from a
privileged port.)

Hope this helps.

-- 
Dan Astoorian               People shouldn't think that it's better to have
Sysadmin, CSLab             loved and lost than never loved at all.  It's
djast@cs.toronto.edu        not, it's better to have loved and won.  All
www.cs.toronto.edu/~djast/  the other options really suck.    --Dan
RedicanThis usually 




-----Original Message-----
From: Dave Mitchell [mailto:davem@fdgroup.co.uk]
Sent: Thursday, June 28, 2001 10:54 AM
To: Clift Robert T CONT DLVA
Subject: Re: (no subject)



sounds like the setuid bit has been removed from you rsh binary, or it
is no longer owned by root. It should be:

-r-sr-xr-x   1 root     bin         9332 Oct  6  1998 /usr/bin/rsh
Received on Thu Jun 28 16:52:02 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:58 EDT