Operating System - HP-UX
1752817 Members
4439 Online
108789 Solutions
New Discussion юеВ

RSYNC:EXECUTE PERMISSION DENIED

 
meekrob
Super Advisor

RSYNC:EXECUTE PERMISSION DENIED

HI ,

i have installed 2.6.8 on a 11.23 HP-UX machine , and i want t syncronise two local files when using rsync ,
first of all i create the link : ln -s /usr/local/bin/rsync /usr/bin/rsync

but when i try the command :
rsync -av /toni/toni1 /toni/toni2
/sbin/sh:rsync:Execute permission denied

note i verified that rsync is executable ,and i'm trying this command as ROOT user ,

thank's for help
7 REPLIES 7
Jan de Haas_3
Frequent Advisor

Re: RSYNC:EXECUTE PERMISSION DENIED

Hi,

Did you check if the symlink was executable or did you also actually check if the binary itself is executable?

Cheers,
Jan.
IT_2007
Honored Contributor

Re: RSYNC:EXECUTE PERMISSION DENIED

what permissions does it shows?

ll /usr/bin/rsync

ll /usr/local/bin/rsync


meekrob
Super Advisor

Re: RSYNC:EXECUTE PERMISSION DENIED

ll /usr/bin/rsync
lrwxrwxr-x 1 root sys 20 Sep 17 21:00 /usr/bin/rsync -> /usr/local/bin/rsync
# ll /usr/local/bin/rsync
-rwxr-xr-x 1 root sys 595956 May 24 09:58 /usr/local/bin/rsync
meekrob
Super Advisor

Re: RSYNC:EXECUTE PERMISSION DENIED

any idea , please
Rajesh SB
Esteemed Contributor

Re: RSYNC:EXECUTE PERMISSION DENIED

Hi,

Remove the created Symbolic link.
Set the "umask 022" and try re-creating the Symbolic link.

Alternate suggestion is to create hardlink instead of Symblic link

# ln /usr/loca/bin/rsync /usr/bin/rsync

Regards,
Rajesh
IT_2007
Honored Contributor

Re: RSYNC:EXECUTE PERMISSION DENIED

What is the permission for rsync on the remote node? Since you are trying to sync files between nodes, you don't have execute permission on the remote node.
Don Mallory
Trusted Contributor

Re: RSYNC:EXECUTE PERMISSION DENIED

Is rsync on the remote node connecting at all?
Does it appear in the same path?

Try the option:

--rsync-path=/path/to/rsync/on/destination

Only use the ACTUAL path, not a symlink for this.