This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: permissions on .exe files

On Jul 21 11:00, Frank Fesevur wrote:
> Hemal Pandya wrote:
> >If I create a file somefile.exe "outside cygwin" then cygwin reports
> >that it is executable. But if the file is created by cygwin then it
> >does not become executable unless explicitly set.
> >
> >One implication of this is that when I extract a .zip using cygwin
> >unzip then the .exe, .dll, .bat etc do not get the executable
> >permission.
> >
> >Is there a way to tell cygwin to assign u+x for the files created from
> >cygwin for which it would have otherwise assumed this permission?
> I'm experiencing similar problems when I download an .exe with wget. 
> Since my question on this issues didn't get a real satisfying answer, I 
> still download to a FAT32 drive. So I hope this problem can be solved.

I don't understand the problem.  You have the same behaviour when
downloading (or unziping) an executable file on Linux.  It's not
executable by default, unless you set an option which also transfers the
mode bits (scp -p, for instance).  chmod is the way to go.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]