My first question is why are you using rsh instead of ssh. As for theQuote:> i had two pentium machines, with redhat 7.2 installed on each. the
> one with hostname 'mainserv' has IP/mask combination as
> 10.0.0.1/255.0.0.0 and other machine with hostname 'linuxhost' has
> IP/mask combination as 10.0.0.5/255.0.0.0
> I login on 'mainserv' as root while on 'linuxhost' as 'common'(an
> ordinary created account).
> when i try to enter any rsh command on 'mainserv' such as given here:
> $rsh linuxhost 'echo $PVM_ROOT'
> it says: 'permission denied'
> i had .rhosts file in respective home directories and are owned by
> respective users(the one on 'mainserv' is owned by root and other on
> 'linuxhost' is owned by common).
> but it did not seem to work. i also tried to have same lines in
> /etc/hosts.equiv on both machines in parallel with .rhosts file, but
> it also went useless.
> please help me, what's wrong.
config files you speak of. The .rhosts file is for user to user auth,,
meaning that you would have to have the users on the machines
"foo.bar.com bob" as for the hosts.equiv file which is used for system
to system auth you need to use fully qualified names such as
+foo.bar.com bob and so on... Try logging in with the rsh -l username
linuxhost then enter the command and tell me the outcome .