delorie.com/archives/browse.cgi | search |
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:from:to:cc:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; q=dns; s=default; b=Hh6AtHdL0RaYu3d8PqpE7BKMX938x | |
+hSv0OFYFYx3YsQoFGPfkovDwSyH/GRS22aUpLtfCv8/JkCQh1FuXB6KB5GxnOKN | |
R0om74LbAHb071T3O7cM7N8I7ZC4olvPhYgppS2pZ4aRTLnLgIsKYdEAmSNGW3Qn | |
8433XT5H6q1MP0= | |
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:from:to:cc:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; s=default; bh=GFQFmWWKiYBm/bCD6N0L6JQF6n8=; b=jDR | |
FGWhVRTmfPkUVfDij4147PtmSycTbDN6YLZ+cSRtG49k7LtHj61YQ57vjQ8J5kaJ | |
NlSqYQ2bnJjEKzDt/PZENxQTdLG3oER+GGSV/LrvXrCgFxCRVCzyrqC/UE7iQN1Z | |
t93ViVMiIu8/O0TyyohnjPl4ApW4k104D3jIDr7A= | |
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=-0.6 required=5.0 tests=AWL,BAYES_50,MIME_BASE64_BLANKS,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 |
X-HELO: | nihxway2out.hub.nih.gov |
X-SBRS-Extended: | Low |
X-IronPortListener: | Outbound_SMTP |
X-IronPort-Anti-Spam-Filtered: | true |
X-IronPort-Anti-Spam-Result: | A2HOCwAXp2xV/4hHKJxcg2ReBoMYrC0BjipvgVKBeoQFAhyBUxIBAQEBAQEBA4EHgwtbPQEBBBIREUUQAgEIGgIGCxUCAgIdExUCAQ0CBA4NEweIC6ocijGjdgEBAQEBAQEBAQEBAQEBAQEBAQEZgSGKIoQjEQEgFhsHCoJeL4EWBZBSgj4HhC+GYIErkjSDWSODeG+BDDqBAQEBAQ |
X-IPAS-Result: | A2HOCwAXp2xV/4hHKJxcg2ReBoMYrC0BjipvgVKBeoQFAhyBUxIBAQEBAQEBA4EHgwtbPQEBBBIREUUQAgEIGgIGCxUCAgIdExUCAQ0CBA4NEweIC6ocijGjdgEBAQEBAQEBAQEBAQEBAQEBAQEZgSGKIoQjEQEgFhsHCoJeL4EWBZBSgj4HhC+GYIErkjSDWSODeG+BDDqBAQEBAQ |
From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
CC: | "'Duane Ellis'" <duane AT duaneellis DOT com> |
Subject: | RE: File permissions different inside and outside cygwin root |
Date: | Mon, 1 Jun 2015 18:38:43 +0000 |
Message-ID: | <6CF2FC1279D0844C9357664DC5A08BA2109EFF1F@msgb09.nih.gov> |
References: | <E087F37F-5AAF-4526-B6B8-091D8F9FDC20 AT duaneellis DOT com> |
In-Reply-To: | <E087F37F-5AAF-4526-B6B8-091D8F9FDC20@duaneellis.com> |
MIME-Version: | 1.0 |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id t51IiaoQ023775 |
Duane Ellis sent the following at Sunday, May 24, 2015 11:03 AM >(Sorry I cannot reply directly to the previous email I just subscribed >to the list, I am quoting from the list archive) >>> (from the archive - permissions inside and outside of /cygwin get messed up) > >I think this is *THE* cause of my problems. > >My question is how do I turn this of 100% totally - and completely? > >How it is effecting me: > >In my case, I *OFTEN* edit source code using 'emacs-w32' under cygwin. > >and often refer to files via a filename like this >/cygdrive/c/some/path/foo.c > >Sadly what happens in the end is, the ACL gets set to the point where I >cannot edit source files. > >Another common example is this: > >Step 1: On Linux - create a "tar.gz" of a source directory. > tar cfz foo.tar.gz somedirectory > >(In my case, it is an open source package that *must* build under both >cygwin and linux) I need to move the code back and forth - to make sure >my changes don't break things > >Step 2: Pull that tar file over to Cygwin (I use cygwin64) > >Step 3: Unpack the tar.gz file using CYGWIN > tar xfz foo.bar.tz > > I specifically use "emacs-w32" - to edit the source code. > It seems that *randomly* the ACL gets totally bunkered > >Step 4: > Maybe there is a method to this madness, but I can't figure out the exact sequence > >I am *NOT* building or doing this under any Cygwin mount I should not >need to, and I should not be required to > >I specifically use: /cygdrive/c/some/path/ > >**NOTE** > This does not *require* the 'tar-copy' method > Using CYGWIN - I "git clone" some repository and edit the files in the standard way > It seems to be more predominant when I copy via TAR across systems. > > I can no longer edit my source code. > I would end up having to "right click" permissions and fix things using windows tools > >Result: > It seems the ACLs are totally messed up > >Bottom line, my expected behavior > I should be able to use a simple editor - i.e.: Emacs-w32 > I should be able to edit a source code file > When I save the source code file - the permissions *before* and *after* should be identical > > They are not, permissions are totally messed up. > > Whatever I am seeing, it is fundamentally broken. The following is totally a guess. You try it at your own risk. It is possible that the solution is in windows, not cygwin. Windows can have security settings that propagate down a directory tree. And when Windows and Cygwin argue, Windows wins. - Go into Windows Explorer for C:\some or C:\some\path. (I advise NOT trying this on C:\. If you do and it results in disaster, it is on your head.) - Right click and select "Properties". - Go to the "Security" tab. - "Advanced". - Select the account under which you use cygwin. - "Change permissions". - You might need to experiment on whether to check or uncheck "Include inheritable permissions from this object's parent". - Check "Replace all child permissions with inheritable permissions from this object". - Select the account under which you use cygwin. - "Edit". - "Full control". - "OK", etc. Or something like that. Again, you play with the Security tab at your own risk. Good luck, - Barry Disclaimer: Statements made herein are not made on behalf of NIAID.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |