>When I try to use rsh to execute a command on a remote workstation, I
>always get the error "Permission denied". When I try to rsh without a
>command to execute, I get prompted for a password, then things work just
>fine. But this doesn't help me. Any ideas? Do I need to be running
>Kerberos?
Reading the man-pages for rsh and rlogin, it becomes clear that you are not set
up as an `equivalent host'. i.e. the machine you're trying to rsh to doesn't
`trust' the machine you're coming from.
SImple solution is to create a file called `.rhosts' in your home directory on
the machine you're trying to rsh to. This file must list the machine you're
coming from and the username you're using on that machine.
An example to (hopefully) clarify:--
Two machines, jim and fred.
I have an account on fred called david and one on jim called mccann
If I'm logged into jim (as mccann) and try to rsh to fred then it will fail
(because there's no account of the name mccann)
So I can use:-
rsh fred -l david (saying I wish to become david)
This in turn will fail unless there is a file in david's hoem directory
(~david) called .rhosts which looks like this:-
jim mccann
which says that mccann logged in to jim can become david here (fred) with no
password required. Since rsh makes no provision for passwords, this is
essential.
I've made this example a little more complicated than neccessary, as in
practice it's usual to have the same account name on different machines, but
that would make the example difficut to clarify. Also note that this is the
(potential) source of security holes. In particular be aware of entries in the
.rhosts file of the form :-
machine-name
(i.e. with no user name) as this allows _anyone_ on the named machine to log
into the account that has that .rhosts file.
This file also controls rlogin access, and removes password requirements for
it in the same way.
Best of luck.
--
David McCann
Computer Science Yr3 Faculty Rep: All Comp.Sci Undergrads
Students Union Court Member (elect) Board of Studies Rep: Comp.Sci 3
Tel: 0956 237670 (any time) Student Council Rep: Comp.Sci