chmod +x not working in Cygwin

0

I am having issues getting cygwin to accept the chmod command:

JonP@price8560p /cygdrive/c/C2dev/Git/c2/bin/ffmpeg
$ chmod -v +x ffmpeg
mode of `ffmpeg' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)

JonP@price8560p /cygdrive/c/C2dev/Git/c2/bin/ffmpeg
$ ls -l
total 33384
-rw-r--r-- 1 JonP Domain Users 17124156 Jun 20 16:57 ffmpeg
-rw-r--r-- 1 JonP Domain Users 17056860 Jun 20 16:57 ffprobe

Anyone have any ideas why after the change above the file still shows as not executable?

Per comments below:

$ df -T /cygdrive/c
Filesystem     Type 1K-blocks      Used Available Use% Mounted on
C:             ntfs 467159036 162434212 304724824  35% /cygdrive/c

Jon Price

Posted 2013-06-20T21:25:25.100

Reputation: 1

What does df -T /cygdrive/c tell you? – Keith Thompson – 2013-06-20T22:10:56.523

This is discussed in the Cygwin FAQ: http://cygwin.com/faq/faq.html#faq.using.chmod FAT32 filesystems don't have an attribute for +x

– Axel Kemper – 2013-06-21T08:37:48.220

Sorry, I should have noted that I already checked and it is NTFS and not FAT32.

`$ df -T /cygdrive/c
Filesystem     Type 1K-blocks      Used Available Use% Mounted on
C:             ntfs 467159036 162434212 304724824  35% /cygdrive/c`
 – Jon Price  – 2013-06-21T13:29:42.547

Cygwin does some magic with files with the .exe suffix -- and I'd expect that file to be named ffmpeg.exe (but it can also be accessed as ffmpeg for Unix compatibility). What happens if you try mv ffmpeg ffmpeg.exe ; chmod +x ffmpeg.exe? – Keith Thompson – 2013-06-22T01:37:02.733

I will give that a shot. Problem is, this is getting tar-ed up and moved to a unix machine, s oi will add the extension chmod it, and then remove and see if that helps. – Jon Price – 2013-07-08T15:27:48.273

Answers

0

try chmod -v 0577 ffmpeg. if it doesn't work, use full path of ffmpeg

Gaurav Kumar

Posted 2013-06-20T21:25:25.100

Reputation: 24

Nope, sorry, sadly this doesn't work for me. – Jon Price – 2013-06-21T13:32:50.307