1832343 Members
2581 Online
110041 Solutions
New Discussion

Cannot execute rcp

 
SOLVED
Go to solution
Deborah Grierson
Frequent Advisor

Cannot execute rcp

I am trying to copy a file from an A-class server to a workstation, both are running HP-UX 11.0.

With the command "rcp file.name wkstn:/tmp" I get the error: "cannot execute"

It works fine from several other servers, running both HP-UX 10.20 and 11.0.

What is going wrong?
I'll need all the help I can get
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Cannot execute rcp

What are the permissions on /usr/bin/rcp?

Pete

Pete
Deborah Grierson
Frequent Advisor

Re: Cannot execute rcp

Pete,
That could explain something!

---------- 1 root bin 49152 Aug 7 2000 /usr/bin/rcp

John
I'll need all the help I can get
Pete Randall
Outstanding Contributor

Re: Cannot execute rcp

Yep, that would make it a bit difficult to execute, wouldn't it?
$ ll /usr/bin/rcp
-r-sr-xr-x...1..root.......bin ..........45056..Jul..2..2001../usr/bin/rcp

Pete

Pete
Deborah Grierson
Frequent Advisor

Re: Cannot execute rcp

Pete,

Is there a reason for the permissions being 000? I notice that in the same directory, remsh, rlogin, tftp, uucp and uux are all 000 permissions.

Or can I simply chmod them all?

John
I'll need all the help I can get
Pete Randall
Outstanding Contributor
Solution

Re: Cannot execute rcp

John,

The only thing I can think of is that some administrator wanted to disable the "r" commands. I would chmod them.
$ ll remsh rlogin tftp uucp uux
-r-sr-xr-x 1 root bin 28672 Jul 2 2001 remsh
-r-sr-xr-x 1 root bin 36864 Jul 9 2001 rlogin
-r-xr-xr-x 1 bin bin 32768 Nov 14 2000 tftp
-r-sr-xr-x 1 uucp bin 57344 Nov 14 2000 uucp
-r-sr-xr-x 1 uucp bin 53248 Nov 14 2000 uux

Pete

Pete
Deborah Grierson
Frequent Advisor

Re: Cannot execute rcp

Pete,

Thanks. I think your theory about the SysAdmin is correct.

John
I'll need all the help I can get