1827158 Members
2107 Online
109716 Solutions
New Discussion

rcp: cannot execute

 
SOLVED
Go to solution
Deborah Grierson
Frequent Advisor

rcp: cannot execute

I can usually copy files (as root) from one server to others using the command:

rcp -p file.nam otherserver:/tmp

Hovever, when I try to copy it to one particular machine, I get the error:

ksh: rcp: cannot execute

Any ideas?

John
I'll need all the help I can get
5 REPLIES 5
kish_1
Valued Contributor

Re: rcp: cannot execute

check that machine host file entry , are you able to do a remsh to that server
share the power of the knowledge
Jean-Louis Phelix
Honored Contributor
Solution

Re: rcp: cannot execute

hi,

I think that you have a problem with your local rcp program :

- use 'type rcp'. It should be /usr/bin/rcp

- ll /usr/bin/rcp should return :
-r-sr-xr-x 1 root bin

Regards.
It works for me (© Bill McNAMARA ...)
Robert-Jan Goossens
Honored Contributor

Re: rcp: cannot execute

Hi John,

check you permission on

-r-sr-xr-x 1 root bin 49152 Apr 9 1999 /usr/bin/rcp

Hope it helps,

Robert-Jan.
Pete Randall
Outstanding Contributor

Re: rcp: cannot execute

Hi John,

Have you checked the permissions and ownership on the rcp command? It should be:
-r-sr-xr-x...1 root.......bin ........45056 Jul 2 2001..../usr/bin/rcp

Pete

Pete
Deborah Grierson
Frequent Advisor

Re: rcp: cannot execute

Thanks, guys

When I checked /usr/bin/rcp, I found that the permissions on it were ----------. I changed it to -r-sr-xr-x, and it worked.

John
I'll need all the help I can get