delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/22/15:05:55

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=RIokIWu3BOxCiaiZIiQXsbIwzrgc
KWAt1xr7RBNlv0KXC8kX6Ui8GPpIYBp9Cvt1UD2XXByj35KhVzKTxhl2BwL286qR
9I+snvgfpBivCxOV+CZQsZxfA4cyHPljDtO7nI8abCcJ8CfusaP6jPKoJvEMxqF+
1HPACvPgZRo5MQg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=TQ1AX/faT+FNVzqkqDGZgPfo3Xc=; b=r/
9R99M89xilw3BK57tkEAf7UufAAR/WgcBMVLmMT3oQnD88DBOAxX86XvoFMHqGDS
FfUrX/J0ajscJBQF+HArRnm0SAgAUmImArL54kTw0GNCz1/6iMSrJmHm0UV6Eqnj
Z4PcOg0Z5yj2uEtQXqUErT/mj6Y4kWcWzNne+uLOg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=D*stat.colostate.edu, D*colostate.edu, U*Zube, sk:Zubest
X-HELO: etr-usa.com
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Subject: Re: wget 1.17.x creates odd permissions on downloaded files
From: Warren Young <wyml AT etr-usa DOT com>
In-Reply-To: <20160622184015.GA73575@quantum.stat.colostate.edu>
Date: Wed, 22 Jun 2016 13:05:25 -0600
Message-Id: <1C7B9046-3261-4D73-8A92-7F46B86E5A0F@etr-usa.com>
References: <20160622184015 DOT GA73575 AT quantum DOT stat DOT colostate DOT edu>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u5MJ5qje020285

On Jun 22, 2016, at 12:40 PM, Zube <Zube AT stat DOT colostate DOT edu> wrote:
> 
> 1) putty will not execute.  Error is "Access is denied”.

Is it getting the +x permission for your user or one of its groups?  Windows requires this just as Unix does.

Post the getfacl and icalcs output for putty.exe if you think it’s correct.

> 2) Examining the permissions on putty.exe, the first thing that
> comes up is an error that reads:
> 
> "The permissions on putty.exe are incorrectly ordered, which may
> cause some entries to be ineffective.”

That’s Explorer saying that, not Cygwin, right?  Let Explorer fix it.

> The permissions are odd.

If it doesn’t need any Windows-specific permissions, you can strip all non-Cygwin/POSIX permissions:

   $ setfacl -kb putty.exe
   $ chmod +x putty.exe

Do it in that order.  (The second command may not work or may do strange things if you do it before stripping the non-POSIX permissions.)

If that still fails, setfacl -kb the directory you’re doing this in, but only if it’s a directory that only Cygwin uses.  Otherwise, you risk breaking some ACL Windows or a native Windows program depends on.

> If I use a browser to download the file or a different version of wget
> (e.g. https://eternallybored.org/misc/wget/) and drop putty.exe in
> the same directory, there are no issues.

Yes, Windows seems to set the +x permission the way some people use table salt.

> It also doesn't matter where
> the file is dropped.

Oh, that might not be true.  Windows’ permission inheritance model can result in the destination mattering.  What you mean to say is, you have yet to find a target directory where the results are different. :)

This may not be a wget problem.  cygwin1.dll is becoming more POSIX-compliant in its permission handling lately.
--
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


- Raw text -


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