1849834 Members
2454 Online
104044 Solutions
New Discussion

rcp

 
P.V.Ramesh
Advisor

rcp

Hi

I am facing a pecular problem on the above. We have two machines apple and mango.

I have created identical users accounts on both machines. Few users are not able to rcp from one machine to other.

Example: - One of my user able to copy files from apple to mango, where as he is unable to do the same from mango to apple.

Few users are able to transfer the files from both sides.

I have checked their .rhosts file. It is identical on both machine. But we are facing the problem. The following error is occured.

remshd: Login incorrect.

Note: On both machines login-id's are identical.

Can anybody help me on this.

9 REPLIES 9
Rodney Hills
Honored Contributor

Re: rcp

Did you check the .rhosts files were owned by the people having the problem?

Also .rhosts can not have public write access.

-- Rod Hills
There be dragons...
P.V.Ramesh
Advisor

Re: rcp

Rodney

The file permissions are as follows.

rw-r--r-- on both machines he have. I am wondering he can do from one machine, but couldn't from the other
Jean-Luc Oudart
Honored Contributor

Re: rcp

steven Burgess_2
Honored Contributor

Re: rcp

Hi

Have you checked the permissions on the ~/.rhosts file ?

Should be 600 rw------- and owned by the user

Also check that both servers can resolve the others hostnames

nslookup

HTH

Steve
take your time and think things through
Sanjay_6
Honored Contributor

Re: rcp

Hi,

Users who are unable to rcp to another system, are they able to do a telnet to that system. If not, are they able to read the hosts file, in case the system names are resolved through the hosts file. Looks like a hostname resolution problem to me.

Hope this helps.

Regds
harry d brown jr
Honored Contributor

Re: rcp

Can you post what .rhosts has in it - the one from mango and apple.

also, test with "+ +" in both servers.

Also check that both hosts "know" about each other.

live free or die
harry
Live Free or Die
John Bolene
Honored Contributor

Re: rcp

Each server may know the other by a different name depending on DNS or hosts files.

Do a who -a on each machine and see what the host thinks the other is called and that is what needs to be in the rhosts file on the machine.

The reverse DNS lookup may not be working, check that also.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Frank Slootweg
Honored Contributor

Re: rcp

I advise to start with remsh(1), not rcp(1) and do a remsh(1) from the problem system to itself, i.e. use a *simple* command and use *one* system, i.e.

$ remsh `hostname` date

Also note that, as others have mentioned, but you have not confirmed, a .rhosts file *must* be *owned* by the user in whose home directory it sits, i.e. ~franks/.rhosts *must* be owned by user franks.

Also, as others have mentioned, a .rhosts file *should* (*not* "must") be mode 600/-rw-------, but, especially if you have problems like you are having, it is better to start with an 'open' one (666/-rw-rw-rw-) and then 'close' it once things work.
Geetha Alagappan
Regular Advisor

Re: rcp

Ramesh,
Do you have TCP wrappers on? I had a similar problem with TCP wrappers and banners. On removal of the banners it worked.
Geetha.
hercules