Subject: Re: rcp problem?
To: Andrew Gillham <gillhaa@ghost.whirlpool.com>
From: D. J. Vanecek <listread@bedford.net>
List: current-users
Date: 12/23/1997 01:04:22
>
> Hello,
>
> I use rcp occasionally, but under 1.3_BETA the following fails:
> % rcp localhost:test /tmp/test
> rcp: rcp: rshrcmd: setuid(0): Operation not permitted
>
Curious. Using 1.2.1, an unprivileged user (djv) gets these
results: (the name of localhost is "ahab.loco.net")
{djv@ahab djv}$ rcp localhost:/home/djv/something /tmp/test
Permission denied.
but
{djv@ahab djv}$ rcp ahab:/home/djv/something /tmp/test
{djv@ahab djv}$ ...(success)...
djv's .rhosts includes ahab.loco.net
host ahab's /etc/hosts.equiv also lists himself.
If I add "localhost" to .rhosts, the "rcp localhost:" will succeed.
I think that unless "localhost" is explicitly granted some kind of
"r-command" permission, it probably _ought_ to fail. That error message
looks a bit "innovative" though.
Dave