Operating System - HP-UX
1833778 Members
2510 Online
110063 Solutions
New Discussion

Re: rcp error- Permission denied

 
SOLVED
Go to solution
mooi-kuan
Advisor

rcp error- Permission denied

I have these two identical file in my directory:
-rw-r--r-- 1 root sys 124547 Mar 7 09:30 DPRE-D3391.04.sif
-rw-r--r-- 1 root sys 124547 Mar 7 09:58 DPRE-D3391.05.sif

When I tried to excecute this command:
rcp DPRE-D3391.05.sif data@server1:+
The file was succesfuly copied to.

However,
rcp DPRE-D3391.04.sif data@server1:+

I got the following error:
rcp: +/DPRE-D3391.04.sif: Permission denied

Anybody know what is happening ?
mk
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: rcp error- Permission denied

What are you logged on as when you try to do the rcp?

Is there already a file in the directory you are copying to on the remote machine with the same name?
mooi-kuan
Advisor

Re: rcp error- Permission denied

Thank you Patrick, Yes, there is a similar file on the remote host:

---------- 1 data summit 32768 Feb 15 17:24 DPRE-D3391.04.sif

The file permission is giving me the problem. I have no control over the remote host and don't know why the permission was changed.

mk