1833832 Members
2168 Online
110063 Solutions
New Discussion

Unable to RCP

 
SOLVED
Go to solution
George_Dodds
Honored Contributor

Unable to RCP

i have one server that i want to use to rcp files to 4 other servers.

There are 5 different userids that exist on all of the servers that will use rcp.

in /etc/hosts all of the servers know about each other and in each userid's home directory i have updated the .rhosts file with the relavent server info.

But when i try to rcp from one server to another i get :-

$ rcp /home/userid1/test server2:/home/userid1
remshd: Login incorrect.

The userid's passwords are the same on both servers, what am i missing?

Ta

George

33 REPLIES 33
Stephen Keane
Honored Contributor

Re: Unable to RCP

If you remsh into server2 from the server you were on, does it ask for a password. If it does, check the rhosts and /etc/hosts files again.
Sunil Sharma_1
Honored Contributor

Re: Unable to RCP

I will check name lookup and .rhosts file permission for this.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Michael_356
Frequent Advisor

Re: Unable to RCP

Hi there,

try remsh server1 ll

if you then get "remshd: Login incorrect"
check your
/etc/hosts
/etc/hosts.equiv
$HOME/.rhosts

regards

Michael
Michael_356
Frequent Advisor

Re: Unable to RCP

Also you can try to insert a line in $HOME/.rhosts with
+ +

then try to remsh to the server with this changed .rhosts

Regards

Michael
George_Dodds
Honored Contributor

Re: Unable to RCP

I can remsh into server 2 from server 1 ok

i've checked the /etc/hosts and .rhosts and they seem fine.

on server1

/etc/hosts has the entry

*.*.*.* server 2

and /home/userid1/.rhosts has the entry

server2 userid1


on server2

/etc/hosts has the entry

*.*.*.* server 1

and /home/userid1/.rhosts has the entry

server1 userid1
Michael_356
Frequent Advisor

Re: Unable to RCP

And you run rcp under userid1-environment?

Michael
George_Dodds
Honored Contributor

Re: Unable to RCP

Yes thats correct
Stephen Keane
Honored Contributor

Re: Unable to RCP

Permissions on home/userid1/.rhosts files?
Michael_356
Frequent Advisor

Re: Unable to RCP

Hmmm...

Maybe you have entries in /var/adm/inetd.sec
or the ports for rcp blocked.

Michael
Michael_356
Frequent Advisor

Re: Unable to RCP

ouch, forget my last reply, i can't delete them.
My finger ary to quick for me :)

i agree with stephen, what are the permissions for .rhosts

regards

Michael
Stephen Keane
Honored Contributor

Re: Unable to RCP

Is it stopping you from rcp both ways, logged into server1 and server2? If so it points to an RCP port/permission problem. If it works one way, but not the other it looks like a .rhosts or /etc/hosts type problem.
George_Dodds
Honored Contributor

Re: Unable to RCP

-rw------- 1 userid1 users 80 Dec 30 12:28 .rhosts

I do have a server that this does work on (i'm currently migrating from 11 to 11i) Server1 is it's replacement. i've crosschecked configs but cant see any different.
Stephen Keane
Honored Contributor

Re: Unable to RCP

You haven't got 2 machines with the same IP address or anything? Does arp -a give you what you expect. Can you ping from server1 to server2 and from server2 to server1 by name and does the IP adresses match what you expect?
Michael_356
Frequent Advisor

Re: Unable to RCP

the owner of .rhosts is userid1?
If .rhosts owner is root, it will not work

Michael
George_Dodds
Honored Contributor

Re: Unable to RCP

Good point i can rcp fine the other way.

There has to be something different on this new 11i server that i'm missing.
George_Dodds
Honored Contributor

Re: Unable to RCP

This new server (server1) is a trusted system, the others are not, would that affect anything?
George_Dodds
Honored Contributor

Re: Unable to RCP

ignore last comment Server2 is a trusted 11i system as well.

I can rcp to server1 from one of the other servers fine
George_Dodds
Honored Contributor

Re: Unable to RCP

Stephen the ip's are fine

Michael the .rhosts file in /home/userid1 is owned by userid1 on all servers

The .rhosts file in the root directory is owned by root.
Stephen Keane
Honored Contributor

Re: Unable to RCP

Are the UIDs the same on the source/dest server pair that works and different on the source/dest server pair that don't work? Probably a long shot, but worth a try.
Michael_356
Frequent Advisor

Re: Unable to RCP

You can rcp from OldSystem to NewSystem but you cannot rcp from NewSystem to OldSystem.

annoying scene!!

It doesn't matter if a system is trusted or not, the way of rcp is the same.
Whats about remsh/rcp server2 from any other server?

Michael
George_Dodds
Honored Contributor

Re: Unable to RCP

UID's are the same.

Other servers work fine it's just this 1 server that seems to want a good beating!
Michael_356
Frequent Advisor

Re: Unable to RCP

$HOME/userid1 is owned by userid1?
/home is owned by root with right permissions?
the entry for userid1 is correct in /etc/passwd?
You have no /etc/hosts.equiv or no entries in it?

Michael
Stephen Keane
Honored Contributor

Re: Unable to RCP

# which rcp

gives the same results? You aren't using kerberos on one server and not the other, or the kerberos version of rcp on one server and not the other?
George_Dodds
Honored Contributor

Re: Unable to RCP

$HOME/userid1 is owned by userid1? - Yes


/home is owned by root with right permissions?
- Yes

the entry for userid1 is correct in etc/passwd?
- Yes

You have no /etc/hosts.equiv or no entries in it?
- Only localhost is in there that is the same on all servers including the original software update server which works fine.