delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/03/14:29:50

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:to:from:subject:date:message-id:references
:reply-to:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=tTlvCV0jEPlMP+RLaJ0aZ32ygT8GflH/8F6SCYPYucp
jofDN92bmRonQl9MJYndjxzTfFsX+rguZNVhkQ/PsgRJKIYfQe1ZBLGuEwMkYi1K
f+OJGViTCZFN0slAW+ilXZ0H6G1086EFYni3OoH/h4pCXwwLxnSZ2ZFwT2OkZq+I
=
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:to:from:subject:date:message-id:references
:reply-to:mime-version:content-type:content-transfer-encoding;
s=default; bh=OMSPvp+ZfZd9+9tPaJbEFsD2TQU=; b=GL8wituhCBJq6nyBC
ONGLsl5X904H3JmX7/yrVALuL0om8v6xFYMhvOHVTcO1/YZsJ0KsmCpeB8YMqope
TWoL4bEJvogBOMFzOwWANr4g6WEcjofVOy+muafUqOJPgADVoUKAvVR26d9j5AtK
+vwwOmyD1RDRefon/m7ieg8D2g=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Michal Wysocki <mos DOT wysocki AT gmail DOT com>
Subject: Re: After cygwin update, all files are created with +x flag
Date: Sat, 3 Oct 2015 20:29:15 +0200
Lines: 32
Message-ID: <uegsopoyhpf6$.1h0kqhlu7wkur$.dlg@40tude.net>
References: <10m9flagqmy3w$.1dy4m4bn3fx8g DOT dlg AT 40tude DOT net> <560FCE3D DOT 8090503 AT cornell DOT edu>
Reply-To: mos DOT wysocki AT gmail DOT com
Mime-Version: 1.0
User-Agent: 40tude_Dialog/2.0.15.1pl
X-IsSubscribed: yes

Dnia Sat, 3 Oct 2015 08:46:53 -0400, Ken Brown napisał(a):

> On 10/3/2015 6:07 AM, Michal Wysocki wrote:
> setfacl -b
> See https://cygwin.com/faq/faq.html#faq.using.ssh-pubkey-stops-working .

Huh, this explanation is really well hidden in FAQ ;)

I've already figured it out, but setfacl -b wasn't a cure in my case.

Cygwin implementation is missing two important options:
-h (do not follow symbolic links)
-R (recursive)

Second one is not a biggie, but this tool simply can't modify cygwin
symlink files (and I have hundreds of them scattered throughout work
folders).

I've fixed my folders by doing a copy of them inside 1.7.29 shell. Old
cygwin automatically created appropriate permissions for every file,
ignoring messy inherited ACL entries that I had in my work folders.   

But there is another catch. Using new cygwin, you can't really create
folders that you intend to use in cygwin via windows explorer (which was
never a problem). They will get ACL entries (inherited from top level
folder C:\ for example) with +x rights, and cygwin will pass these
additional entries to any file created inside that folder.

Well, you get smarter every day ;)

Cheers 
Michal


--
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