X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cygwin.com
From: Michal Wysocki <mos.wysocki@gmail.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.dlg@40tude.net> <560FCE3D.8090503@cornell.edu>
Reply-To: mos.wysocki@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: 8bit
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

