Every time I try to run the bittorrent sync binary, downloaded from here, I get a permission denied error regardless whether try running it as my user or as root. In particular, I get
juan@server:~/.btsync$ ./btsync -bash: ./btsync: Permission denied
root@server:/home/juan/.btsync# ./btsync -bash: ./btsync: Permission denied
I've already changed permission of both btsync the folder containing it to 777. Also my user, juan, is the owner of both the folder and btsync.
This only seems to happen with btsync and not with other programs. I've tried re-downloading btsync. Last bit of, maybe, relevant info: a while back another user attempted (but messed up) to install btsync using apt-get which resulted not on btsync being installed, but this package which is not written by the same people and builds on btsync. I attempted to remove it as best as I could using
juan@server:~/.btsync$ sudo apt-get purge btsync* juan@server:~/.btsync$ sudo apt-get --purge autoremove
but maybe something remains lingering somewhere. What else can cause permission denied errors; what can I try? Thanks in advance.
Edit: Here's the relevant output from ls
-rwxrwxrwx 1 juan juan 5957720 Jul 30 11:08 btsync
drwxrwxrwx 2 juan juan 4096 Aug 7 10:08 .btsync
with the ".btsync" highlighted in green.
Edit 2: I downloaded the x64 version, here's the link. I think that it's the correct one for my architecture, here's what uname -a returns
Linux fileserver 3.11.0-26-generic #45-Ubuntu SMP Tue Jul 15 04:02:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Edit 3: Here's what file btsync returns
btsync: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=0xff654e3f8d393a11bc42f4e23cd96478fdda613c, stripped
Edit 4: Binary, not script, thanks Eliah Kagan, as it's pretty transparent I'm new to linux.