1834449 Members
1968 Online
110067 Solutions
New Discussion

Unable to RCP

 
SOLVED
Go to solution
Stephen Keane
Honored Contributor

Re: Unable to RCP

The user names and UIDs are in password file & shadow password file? Group files are the same?

If remsh works one way but not the other it's unlikely to be a file path permissions problem for rcp.

You aren't running remsh with -l option?
George_Dodds
Honored Contributor

Re: Unable to RCP

rcp works if i put + + in the .rhosts on the servers i want to copy to.

Why is this?

Michael_356
Frequent Advisor

Re: Unable to RCP

If a '+ +' solve the problem, the problem is the entry in your .rhosts.
Wether the name-resolution is incorrect or the username is not the username rcp send from other server.
try
'servername +'
in .rhosts then rcp

if it doesn't work, check /etc/nsswitch.conf for the 'hosts' entry, which sources are there for name resolution.

Also you can check
'+ userid1'
in .rhosts then rcp

if it doesn't work, check /etc/nsswitch.conf for the 'passwd' entry, which sources are there for name resolution.

Regards

Michael
Rob Fisher
Advisor
Solution

Re: Unable to RCP

One thing that I have found always works for resolving .rhosts problems is:

1. rlogin from server1 to server2
2. run # who -lm
This will give you the user ID and server name as server2 knows you are coming from.
Just make sure that the .rhosts has that exact (sometimes fully qualified) server name in the .rhosts and make sure that ID looks correct to.

I have solved many problems with this simple check.
May the winds of life keep you on the right tack
Rita C Workman
Honored Contributor

Re: Unable to RCP

Well....I do have a couple questions..

Like is your hostfile the same across your systems? or is each one unique ?

..cause in your example above you were careful to type server1 and server2 was what showed in the .rhosts file....but for the hostfile you put server 1 and server 2.
So if your hostfile is the same on all your hosts the first time it hit server..you match on that (forget the next one-it ain't gonna use it).
Now if your hostfile is unique on each box, maybe you did a typo on the later. Hence that might explain why the security bypass entry ++ is working for you.

Just thinking (typing) out loud,
Rgrds,
Rita
RAC_1
Honored Contributor

Re: Unable to RCP

George,

This is how I resolve these problems. Say there are two servers A and B. You want to set remsh/rcp access. The details are as follows. (This just an example. Replace all details to suit to your situation)

From serverA, telnet to serverB (the user for which you want to set remsh/rcp) Once you are logged in do
who -um. Check the last column of the output.
(The ip address is in /etc/hosts or what ever you use for name resolution, you will get hostname here.)

Now whatever appears in the last column (ip address or host name) note it down. now on server B, under home directory create .rhosts file (owned by the user you used to log onto serverB and read perms for owner)

ip_address/host_name "user_you_used_for_logging_onto_server"

Repeat the procedure from logging in from serverB to serverA.

This should resolve it.

Anil
There is no substitute to HARDWORK
James George_1
Trusted Contributor

Re: Unable to RCP

Hi

I have heard this ....didn't try it ..

in 11i, if your userid is locked on the system , you cannot do rcp ... so , check the userid status on these systems ..if it is locked .. unlock it and try rcp ..

Rgds / James
forum is for techies .....heaven is for those who are born again !!
George_Dodds
Honored Contributor

Re: Unable to RCP

Rob got it, server1 has 2 nic cards in different networks.

the .rhosts file on the othere servers were pointing to the hostname that the users access the system with which is a 100mb nic.

But the second nic is a gigabit nic that i use to connect to our nas. it has a hostname of server1.nas

I changed the .rhosts to that and it worked fine.

George_Dodds
Honored Contributor

Re: Unable to RCP

Problem solved