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
What does
df -T /cygdrive/c
tell you? – Keith Thompson – 2013-06-20T22:10:56.523This 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.220Sorry, I should have noted that I already checked and it is NTFS and not FAT32.
Cygwin does some magic with files with the
.exe
suffix -- and I'd expect that file to be namedffmpeg.exe
(but it can also be accessed asffmpeg
for Unix compatibility). What happens if you trymv ffmpeg ffmpeg.exe ; chmod +x ffmpeg.exe
? – Keith Thompson – 2013-06-22T01:37:02.733I 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