delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org 5884A3858428 |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=onevision.de | |
Authentication-Results: | sourceware.org; spf=none smtp.mailfrom=onevision.de |
Message-ID: | <a13bc925-cecc-13cb-d3fe-c97e5456869e@onevision.de> |
Date: | Mon, 7 Feb 2022 08:49:46 +0100 |
MIME-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 |
Thunderbird/91.5.0 | |
To: | cygwin AT cygwin DOT com |
From: | Roland Schwingel <roland DOT schwingel AT onevision DOT de> |
Subject: | Re: Cygwin making files inaccessible? |
X-Spam-Status: | No, score=-1.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP, | |
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) on |
server2.sourceware.org | |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.29 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 2177oiRM020197 |
Hi... I have seen similar problems on my side, but could not knock them down 100% reproducable to get a good recipe for debugging it. I got this best reproduceable if I generate a tar on linux with eg a windows .exe inside. and than untar it on cygwin. Afterwards ACLs were broken. Not every time but frequently. When using windows Explorer I got a message like "Permissions are not sorted in the correct way" (in german) when I tried to see permissions. And afterwards they have been quite strange and files where not accessable / executable. I have it with 3.x up to 3.3.4. Roland "Cygwin" <cygwin-bounces+roland.schwingel=onevision DOT de AT cygwin DOT com> wrote on 07.02.2022 08:01:33: > From: "Andrey Repin" <anrdaemon AT yandex DOT ru> > To: "Jay K" <jayk123 AT hotmail DOT com>, cygwin AT cygwin DOT com > Date: 07.02.2022 08:05 > Subject: Re: Cygwin making files inaccessible? > Sent by: "Cygwin" <cygwin-bounces+roland.schwingel=onevision DOT de AT cygwin DOT com> > > Greetings, Jay K! > > > I looked at this a while. I tried various recent cygwin1.dlls as > there were two ACL changes recently. > > I tried building cygwin1.dll with those changes reverted, but > failed to build it. > > For one thing it took me a while to find shilka..it is in cocom, > but that wasn't the entire problem. > > > Eventually.. I noticed the behavior was not the same for every > > file/directory/volume. Sometimes it worked ok. > > Though I think the ACLs still get changed quite a bit: "full" > expands to "many". > > Of course it has worked plenty for me and everyone else. > > > Eventually I tried chmod -R 777 *Â and this seems to have worked. > > > I speculate that some "bad" Cygwin ACLs got created at some point. > > And maybe cacls wasn't deleting them?? That parts seems wierd. > Maybe on directories? > > Possibly due to those two recent changes, or maybe user error, I don't know. > > This may happen outside Cygwin tree, when initial ACL's are set in some > interesting way. > One possible solution is to tweak /cygdrive mount point to include "noacl" > flag, deferring all ACL modifications to Windows. > > (Please bottom post in this list. Thank you.) > > > > From: Jay K > > Sent: Saturday, February 5, 2022 12:16 PM > > To: cygwin AT cygwin DOT com <cygwin AT cygwin DOT com> > > Subject: Cygwin making files inaccessible? > > > > Cygwin making files inaccessible? > > i.e. when Cygwin copies or writes to them, not random files. > > > C:\t>dir /s/b/a > > > C:\t>dir /q . > > > 02/05/2022 Â 04:11 AM Â Â <DIR> Â Â Â Â Â BUILTIN\Administrators . > > 02/05/2022 Â 04:11 AM Â Â <DIR> Â Â Â Â Â NT SERVICE\TrustedInsta.. > > > C:\t>cacls . > > C:\t Everyone:(OI)(CI)F > > > C:\t>echo > 1.txt > > > C:\t>cacls 1.txt > > C:\t\1.txt Everyone:F > > > C:\t>copy 1.txt 2.txt > > Â Â Â Â 1 file(s) copied. > > > C:\t>cacls 2.txt > > C:\t\2.txt Everyone:F > > > C:\t>del 2.txt > > > C:\t>uname -a > > CYGWIN_NT-10.0-WOW DESKTOP-BCFUMJ4 3.3.4(0.341/5/3) 2022-01-31 19: > 31 i686 Cygwin > > > C:\t>cp 1.txt 2.txt > > > C:\t>which cp > > /usr/bin/cp > > > C:\t>cacls 2.txt > > C:\t\2.txt NULL SID:(DENY)(special access:) > > Â Â Â Â Â Â Â Â Â Â READ_CONTROL > > > Â Â Â Â Â Â DESKTOP-BCFUMJ4\jay:(DENY)(special access:) > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FILE_READ_DATA > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FILE_READ_EA > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FILE_EXECUTE > > > Â Â Â Â Â Â DESKTOP-BCFUMJ4\jay:(special access:) > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â STANDARD_RIGHTS_ALL > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â DELETE > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â READ_CONTROL > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â WRITE_DAC > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â WRITE_OWNER > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â SYNCHRONIZE > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â STANDARD_RIGHTS_REQUIRED > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FILE_READ_ATTRIBUTES > > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â FILE_WRITE_ATTRIBUTES > > > Â Â Â Â Â Â DESKTOP-BCFUMJ4\None:R > > Â Â Â Â Â Â Everyone:R > > > > C:\t>more 1.txt > > ECHO is on. > > > C:\t>more 2.txt > > Cannot access file C:\t\2.txt > > > Same behavior from cygwin64. > > > C:\t>\cygwin64\bin\uname -a > > CYGWIN_NT-10.0 DESKTOP-BCFUMJ4 3.3.3(0.341/5/3) 2021-12-03 16:35 > x86_64 Cygwin > > > Huh? > > > I would hope Cygwin could/would just copy the ACLs asis. > > I am guessing there is some failed attempt to translate them > > to an internal form and then back to NT form. > > > My real scenario was open/write/read, not cp.exe. > > > Â - Jay > > > > -- > With best regards, > Andrey Repin > Monday, February 7, 2022 9:59:12 > > Sorry for my terrible english... > > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation: https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |