[12197] in Athena Bugs
decmips 7.6G: rcp
daemon@ATHENA.MIT.EDU (Jim Perchik)
Thu Jul 7 18:46:34 1994
To: bugs@MIT.EDU
Cc: perchik@MIT.EDU
Date: Thu, 07 Jul 94 18:46:11 EDT
From: Jim Perchik <perchik@MIT.EDU>
System name: bolognese
Type and version: KN02ca 7.6G (2 update(s) to same version)
Display type: xterm
What were you trying to do?
/usr/ucb/rcp filename other_non-athena_host:filename
What's wrong:
"socket: Permission denied" error message.
Diagnosis:
/usr/ucb/rcp should be setuid to root.
Clues that point to this diagnosis:
/usr/athena/bin/rcp is setuid to root and works okay, but it first
tries kerberos authentication, which fails (as expected) and then
tries /usr/ucb/rcp, which succeeds. so my ~/.rhosts file is fine.
since i know in advance that kerberos authentication will fail, i
would prefer to to save time by directly invoking /usr/ucb/rcp.
/usr/ucb/rsh is setuid to root and works fine. when i make a copy
of /usr/ucb/rsh, which is not setuid root, and execute the copy, it
gives same "socket: Permission denied" error message.
6: athena ~ % ls -l `where rcp` `where rsh`
-r-sr-xr-x 1 root 184320 Jul 4 1993 /usr/athena/bin/rcp
-r-xr-xr-x 1 root 155648 Jul 4 1993 /usr/athena/bin/rsh
-rwxr-xr-x 1 root 126976 Mar 19 1991 /usr/ucb/rcp
-rwsr-xr-x 1 root 114688 Mar 19 1991 /usr/ucb/rsh
7: athena ~ %
What should have happened:
file(s) should have been transferred.
Please describe any relevant documentation references:
the standard (non-kerberized) rcp comes installed setuid to root on my
non-athena (AIX) system. presumably same on suns & vaxes.
568: moon ~ % ls -l `which rcp`
-r-sr-xr-x 1 root system 19965 Jan 09 1992 /usr/bin/rcp
thank you.
Jim Perchik
MIT Center for Advanced Engineering Study, 9-470
77 Massachusetts Avenue
Cambridge, MA 02139
(617)253-1967