From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::102]) by sourceware.org (Postfix) with ESMTPS id 958D03857831 for ; Sun, 4 Jul 2021 14:35:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 958D03857831 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from forward101q.mail.yandex.net (forward101q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb98]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 60D35F2126C; Sun, 4 Jul 2021 17:35:02 +0300 (MSK) Received: from vla5-9129714d0767.qloud-c.yandex.net (vla5-9129714d0767.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3609:0:640:9129:714d]) by forward101q.mail.yandex.net (Yandex) with ESMTP id 5A175CF40004; Sun, 4 Jul 2021 17:35:02 +0300 (MSK) Received: from vla1-1bc5b51c612f.qloud-c.yandex.net (vla1-1bc5b51c612f.qloud-c.yandex.net [2a02:6b8:c0d:89c:0:640:1bc5:b51c]) by vla5-9129714d0767.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 74B1QdK9S1-Z2I0KYJp; Sun, 04 Jul 2021 17:35:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1625409302; bh=fIQDm7XUqreL1FbrIRuOYPJ0ayRcZdqoSkSVXsUpd/g=; h=In-Reply-To:Subject:To:From:Message-ID:References:Date:Reply-To; b=tbcJfbfDRn9ZckpHwwYsbGwVdbVNoWtY7gdKUyKCVCO0h6vpA3/LdFSAhWcnyzJWM eN+48LbNbQ2kre2UMjqxGSszNRYOQh3IdBoWW+4NATjo1t02nyyjTo/FTsXVeNH4f5 iU8fIWXbRpZKd3FkwNt9IZcQkh8tOgZVuzxj/Fmc= Authentication-Results: vla5-9129714d0767.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla1-1bc5b51c612f.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id Px9OKGOsoc-Z1PqJZMe; Sun, 04 Jul 2021 17:35:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sun, 04 Jul 2021 14:20:15 -0000 Date: Sun, 4 Jul 2021 17:20:15 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <514405575.20210704172015@yandex.ru> To: L A Walsh , cygwin@cygwin.com Subject: Re: objects created in a dir w/cygwin mangled perms; inherit no-access In-Reply-To: <60E14AAA.4000404@tlinx.org> References: <60E14AAA.4000404@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2021 14:35:08 -0000 Greetings, L A Walsh! > Trying to track down exact conditions for a simpler testcase > for a weird error message in tar and ran across this... > in directory 'SI': > /progd/Microsoft/../Tools/Sysinternals> ll -ad SI > drwxrwxr-x+ 1 0 Jul 3 16:28 SI/ > w/umask: >> umask > 0002 > I make dir 'newdir': >> mkdir newdir > and ls -lgG shows: > d---rwxr-x+ 1 0 Jul 3 16:40 newdir/ > No access for user(me). The "+" at the end indicates presence of extended permissions. What getfacl says? > I ran into this because trying to enter the directory in > explorer I got no access! Trying to look at the perms, I > get warnings about the rights possibly being out of order until > eventually, if I want to proceed, it claims it has to reorder them. This is true, that Cygwin sets permissions in a non-canonical order, but that's the only way to have desired results for certain cases of POSIX permissions configuration. > This seems to have come from some weird setting that > seems to come from Cygwin, with 5 deny records at the front > for NULL, 3 local accounts and 1 domain account (me)... > and the local accts ... also me of a sort. > Then come various allows, some of them that would seem > to undo some of the denies, but its really dependent on > order -- which explorer says is suspect... > Fine...so the results when I did the "mkdir newdir", were > such that ended up with u-wrx, and no access in explore? What is "progd" ? Did you mount some directory into Cygwin tree? > Of course I can overide, but why are such weird acls on > this anyway? -- especially when it doesn't seem to really > work? Probably because of interpretation of the original Windows permissions. -- With best regards, Andrey Repin Sunday, July 4, 2021 17:13:55 Sorry for my terrible english...