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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=u+v204yf9lnKBnpj T8yhtQUCoW4fys5LEKUmIMykimzTSRfPl+kzCfnD6HM8CqHRVsDvcupHZVZIwUfY 26lsl7NdpZsOQN3RtCDXA9PsklE+aXMHgWDy9ZPMrRO6LYuwCZTQakvkFlT4JgVd EPg1+Cotd96HTaSQReTmmiKnPhM= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=zhCLuCLojUPXjI8FBXhj9D iM7Ek=; b=BPs8R9HvrG66ZErCv9nt4xYL+5CykkpwuOn0RgfrHfD+jL01DS4M7f BxghTlplX0AvTnSmYsoAuk/3Uhq6vEmEJD9LA7+6l3BF4WzYWZheGbyN3cf6Fyaz dLbqhp8zRqj3l4cFhfLYyCma3p4O4kVdUkCz+x2SpRPMdzZgChyVs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, homes, H*UA:Home X-HELO: forward2o.cmail.yandex.net Authentication-Results: smtp1o.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Date: Thu, 23 Jun 2016 13:34:17 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1615080910.20160623133417@yandex.ru> To: Zube , cygwin AT cygwin DOT com Subject: Re: wget 1.17.x creates odd permissions on downloaded files In-Reply-To: <20160622184015.GA73575@quantum.stat.colostate.edu> References: <20160622184015 DOT GA73575 AT quantum DOT stat DOT colostate DOT edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Zube! > wget 1.16.3 seemed to work fine for a simple task, that is to download > putty.exe from a local http site. Start up a normal windows cmd.exe, > download, run, no muss, no fuss. > The last two wget versions (1.17.1-1 and -2) seem to exhibit the > following issues when putty.exe is downloaded. > 1) putty will not execute. Error is "Access is denied". That depends on the permission model you're using for directory, where you are downloading the file to. If you are using Cygwin ACL's, then the behavior is POSIX, and the new file will not receive +x by default. > 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." > The permissions are odd. When compared to a working machine (wget > 1.16.3, cygwin 2.3.1) there is an additional group ("NULL SID") with > special access of type Deny and several of the other users and groups > have similar "type Deny" restrictions. This is how Cygwin works around certain incompatibilities between Windows and POSIX permission models. Do NOT fall into a trap and believe that Explorer trying to drag you to. The permissions are correct, it's just that Explorer is unable to deal with them, because all it knows is so-called "canonical" order. > 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. It also doesn't matter where > the file is dropped. > This occurs on both a Windows 7 64-bit machine that has had > 32-bit cygwin upgraded multiple times and on a new Windows 10 > 64-bit machine with 32-bit cygwin installed fresh. It occurs > under cmd.exe and also under Cygwin.bat, for both administrators > and non-administrators. > Any help greatly appreciated. Thank you for your time. If you want Windows behavior, use noacl flag on non-Cygwin mounts. F.e. # RAM disk W:/ /var/run ntfs acl,binary,nouser,posix=0 0 0 # /cygdrive mount none /cygdrive cygdrive noacl,binary,nouser,posix=0 0 0 # Map user homes to /home C:/Users /home bind noacl,binary,exec,posix=0 0 0 # And /tmp to user %TEMP% none /tmp usertemp binary,user,notexec,posix=0 0 0 -- With best regards, Andrey Repin Thursday, June 23, 2016 13:21:51 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