delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/21/12:21:56

X-Spam-Check-By: sourceware.org
Date: Fri, 21 Jul 2006 12:21:45 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Frank Fesevur <ffes AT users DOT sourceforge DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: permissions on .exe files
In-Reply-To: <44C097C6.8080407@users.sourceforge.net>
Message-ID: <Pine.GSO.4.63.0607211144590.17655@access1.cims.nyu.edu>
References: <50be591b0607202319w2e9845bdp560051aa70f604a8 AT mail DOT gmail DOT com> <44C097C6 DOT 8080407 AT users DOT sourceforge DOT net>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, 21 Jul 2006, Frank Fesevur wrote:

> Hemal Pandya wrote:
> > 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.
>
> 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.

Ever try saving a Linux executable via Mozilla on Linux?  It would not
have the execute bit set -- you'd need to explicitly chmod it.  The point
is that wget retrieves a stream of bytes, and possibly saves it to a file.
It does not try to interpret that stream of bytes.

As I replied to Hemal, you can force Cygwin to use the Windows ACL
inheritance rules for newly created files by setting CYGWIN to nontsec
temporarily, i.e.,

CYGWIN=nontsec wget someurl

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019