From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105046 invoked by alias); 22 Jun 2016 19:05:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 105037 invoked by uid 89); 22 Jun 2016 19:05:37 -0000 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 Received: from etr-usa.com (HELO etr-usa.com) (130.94.180.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Jun 2016 19:05:27 +0000 Received: (qmail 33858 invoked by uid 13447); 22 Jun 2016 19:05:26 -0000 Received: from unknown (HELO polypore.west.etr-usa.com) ([73.26.17.49]) (envelope-sender ) by 130.94.180.135 (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 22 Jun 2016 19:05:26 -0000 Content-Type: text/plain; charset=utf-8 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 In-Reply-To: <20160622184015.GA73575@quantum.stat.colostate.edu> Date: Wed, 22 Jun 2016 19:43:00 -0000 Content-Transfer-Encoding: quoted-printable Message-Id: <1C7B9046-3261-4D73-8A92-7F46B86E5A0F@etr-usa.com> References: <20160622184015.GA73575@quantum.stat.colostate.edu> To: The Cygwin Mailing List X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00304.txt.bz2 On Jun 22, 2016, at 12:40 PM, Zube wrote: >=20 > 1) putty will not execute. Error is "Access is denied=E2=80=9D. Is it getting the +x permission for your user or one of its groups? Window= s requires this just as Unix does. Post the getfacl and icalcs output for putty.exe if you think it=E2=80=99s = correct. > 2) Examining the permissions on putty.exe, the first thing that > comes up is an error that reads: >=20 > "The permissions on putty.exe are incorrectly ordered, which may > cause some entries to be ineffective.=E2=80=9D That=E2=80=99s Explorer saying that, not Cygwin, right? Let Explorer fix i= t. > The permissions are odd. If it doesn=E2=80=99t 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 th= ings if you do it before stripping the non-POSIX permissions.) If that still fails, setfacl -kb the directory you=E2=80=99re doing this in= , but only if it=E2=80=99s a directory that only Cygwin uses. Otherwise, y= ou 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 s= alt. > It also doesn't matter where > the file is dropped. Oh, that might not be true. Windows=E2=80=99 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-complia= nt 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