SUMMARY: Couldn't look up address, Bad MNT RCP, Server rejected c redential

From: Darryl Milczarek <darryl.milczarek_at_emsusa.com>
Date: Thu, 19 Jul 2001 08:06:21 -0700

Thanks to Oisin McGuinness [mailto:oisin_at_sbcm.com] who provided the key
solution, as well as to the others who had useful suggestions, including
Ryan McConigley, Jim Belonis, Paul A Sand, Mandell Degerness, Pat O'Brien
and Corinne Haesaerts.

I had reversed the order of the qualified names and alias names in the hosts
files for the two servers. Basically, Oisin's advice was to verify the
"order" of the entries on each line of the "hosts" file to see that they
follow this structure:

IP_address fully_qualified_name alias

I found that for server1, I had followed this pattern, but on server2, I had
reversed the order.

I present Oisin's solution below, followed by the original question.

************* Oisin's Resolution *******************
I've seen something like this when there is a small inconsistency between
the hostnames known to the two hosts. For example, if you
are using local first resolution on both hosts, (/etc/svc.conf has line
host=local....),
and say the server names are A and B, with addresses 1.0.0.1 and 1.0.0.2,
and
say there are aliases AA and BB, then if
server A's /etc/hosts file contains
the lines

1.0.0.2 B BB
1.0.0.1 A AA

and server B's hosts file contains

1.0.0.2 B BB
1.0.0.1 AA A

then an rsh one way will work (assuming /.rhosts are all setup right,
permissions restrictive
etc.) but not the other.... (An rsh from A to B will cause AA to be returned
on B for the IP to
name lookup, and a credential conflict.)

The generalization to DNS or YP usage is left as an exercise.

************** Original Question ****************
> We have two "identically" configured AS4100 servers running 4.0g on our
> network.
> As root, I can issue rcp commands from server2 to/from server1 with
success,
> both pulling and pushing data as shown below:
>
> server2
> # pwd
> /temp
> # ls test*
> test.file
> # rcp test.file server1:/tmp/test_from_2.txt
> # rcp server1:/tmp/test_from_2.txt ./test_from_1.txt
> # ls test*
> test.file test_from_1.txt
>
>
> However, when I try to do the same from server1 to/from server2, I receive
> nothing but grief:
>
> server1
> # pwd
> /tmp
> # ls test*
> test_from_2.txt
> # rcp test_from_2.txt server2:/temp/test_from_ems1.txt
> Couldn't look up address for your hostPermission denied.
> # rcp server2:/temp/test.file ./test_from_ems2.txt
> Couldn't look up address for your hostPermission denied.
>
> I have checked the /etc/hosts.equiv files on both servers, as well as the
> .rhost files, and they seem similar, each containing the other servers
name
> followed by the user name thus:
>
> server1
> -------
> server2 root
>
> server2
> -------
> server1 root
>
> One more piece of information which might be of use. From server2, I am
able
> to NFS mount directories which reside on server1. But when I try the same
> thing from server1, once again, I get nothing but grief, as shown below:
>
> NFS Configuration on server1:
> When I try mounting the shared directory which resides on server2, I get
> this error:
>
> Can't Share server2:/u06/11i_patches
> Bad MNT RCP: server2:/u06/11i_patches: RCP: Authentication error;
why=Server
> rejected credential
>
> I can successfully ping and telnet using hostname or ip address between
the
> two servers with no problem at all.
>
> Has anyone any ideas as to what needs fixing?
>
> Darryl Milczarek
> EMS 602 258-8545
> darryl.milczarek_at_emsusa.com
Received on Thu Jul 19 2001 - 15:06:58 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT