bat files not automatically assumed to be executable

Andrey Repin anrdaemon@yandex.ru
Fri Jul 17 19:20:00 GMT 2015


Greetings, schilpfamily!

> i updated my cygwin area recently and now windows bat files will not
> execute with  "Permission denied" error message. in addition the bat
> file has permission 644.
> previous to updating cygwin, all bat files had the execute bit set and
> were always executable. on the documentation for cygwin, it explicitly
> says that bat, com and exe files are always executable in cygwin. has
> this changed?? and if so, why?? this makes it really painful....

If you bar file is located under cygwin root, you must explicitly give it
executable permissions.
If it is located outside Cygwin root, you may go away with deferring ACL
control to Windows.
I.e. by amending /etc/fstab to something like

none /cygdrive cygdrive binary,posix=0,noacl 0 0

Ref: https://cygwin.com/cygwin-ug-net/using.html#cygdrive


-- 
With best regards,
Andrey Repin
Friday, July 17, 2015 22:11:36

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list