[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] rcmd glitch in modified rsh
From: |
David Mathog |
Subject: |
[bug-inetutils] rcmd glitch in modified rsh |
Date: |
Fri, 04 Apr 2003 16:08:33 -0800 |
I have a modified rsh based on inetutils-1.4.2 which can do this:
% /usr/common/bin/rsh host1,host2,host3 hostname
host1.cluster
host2.cluster
host3.cluster
or, at least it can do that as root. As a normal user it
does instead:
/usr/common/bin/rsh host1,host2,host3 hostname
host1.cluster
rcmd: socket: Permission denied
where the rcmd message comes from this line:
rem = rcmd (&host, sp->s_port, pw->pw_name, user, args, &rfd2);
I've verified that the arguments to the rcmd call are the same
for the second host for both root and the unpriv'd user. (And
exactly the same as for the first host except for the &host part).
The protections seem reasonable on the modified rsh:
# ls -al /usr/common/bin/rsh
-r-sr-xr-x 1 root root 61k Apr 4 15:59
So what is it about a regular user which prevents them from
calling rcmd twice sequentially with a different "host" value???
This is on RH 7.3.
Thanks,
David Mathog
address@hidden
Manager, Sequence Analysis Facility, Biology Division, Caltech
- [bug-inetutils] rcmd glitch in modified rsh,
David Mathog <=