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:reply-to:subject:from:to:references:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Xa9rTJpAZFkSVDvq 45xDzzelz6rWZ6/UHAzZu8YsdacRCj9Rpvognx17BxdaDzvHpOIp2pTS2ViILJYr Mp4iFbIrzqojQes8ShvAwkkR85Otq3FKXh+DiRaFT5kdn+MF3/K1oSSLbzxh0h9T ahiK4gErFntZQ6W8ZpCWlNb2aU8= 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:reply-to:subject:from:to:references:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=VRmR+bEnyq4qTHOmNaNgIp 8ARr0=; b=cp1wlVaCuyEZXvdc5R5/gOpMVVA3oQjEAE1OLX59rML/BaXkYv553X iIyT1Kqt+XcdPd7uLvx0Vqn45IxBjakbkLMlGWSzqR2iVnKsSh08Q5jkMy10Mqsv x8ztzkWYCYN+Y1ZlnATKej1PNILEETQrCsj9z4o4sEoIlNKduvJ6w= 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=-6.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=SYSTEM, rx, Progress, documents X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: Filemode change by windows applications From: Eliot Moss To: cygwin AT cygwin DOT com References: <518060803 DOT 20180328171118 AT yandex DOT ru> <9965f4cf-566c-6d20-61b7-ce43580935aa AT cs DOT umass DOT edu> Message-ID: <7f3fe599-eda0-2c97-b344-687b606615eb@cs.umass.edu> Date: Wed, 28 Mar 2018 10:45:21 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <9965f4cf-566c-6d20-61b7-ce43580935aa@cs.umass.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 3/28/2018 10:40 AM, Eliot Moss wrote: > On 3/28/2018 10:11 AM, Andrey Repin wrote: > >>> and is there anything I can do to prevent windows >>> applications from setting the execute bit on my files? >> >> No, and you will be unable to use Windows associations, if you clear execute bit >> on documents. > > Interesting that you think so, Andrey.  I just tested this on my Windows 10 > Surface Book.  I used Windows Explorer to navigate to a folder where I had > cleared the x bits from a .docx file (setting mode to 660 with chmod in > Cygwin), and clicking on the file opened Word on the file just fine.  Maybe > this behavior is dependent on some other things as well? Here is getfacl output for the file in question: # file: Progress Letters S16.docx # owner: moss # group: moss user::rw- group::--- group:SYSTEM:r-x #effective:r-- group:Cygwin:rwx #effective:rw- mask:rw- other:--- So there are underlying x bits of some kind, but Cygwin does display mode 660 via ls -l (for example). Still, we entirely agree that there is not really a way to prevent a Windows program from setting the x bits. Here is getfacl from another file in the same folder, reflecting how Word sets the permissions: # file: Progress Letters S17.docx # owner: moss # group: moss # flags: -s- user::rwx group::--- group:SYSTEM:r-x group:Cygwin:rwx mask:rwx other:r-x I think the key difference is "mask". Regards - Eliot -- 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