delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/04/10:35:26

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 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
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
Date: Sun, 4 Jul 2021 17:20:15 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <514405575.20210704172015@yandex.ru>
To: L A Walsh <cygwin AT tlinx DOT org>, cygwin AT cygwin DOT com
Subject: Re: objects created in a dir w/cygwin mangled perms; inherit no-access
In-Reply-To: <60E14AAA.4000404@tlinx.org>
References: <60E14AAA DOT 4000404 AT tlinx DOT org>
MIME-Version: 1.0
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019