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:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=Ds7Nexa
	sNMXSOhnaPa4qI1kEihopnFpwaxStk9f5cEVwG/jTEJ4+Z32W3Jq6ANrVZQiKr/I
	OdsVQTMAooAN7Eout1/IHgSMoet5A02QaYUjqpzDL2y+jT3tgQskkGa2CA1OX2j4
	cjT9Bap9e1hcHncMfzezCZru8YC6j0QT+nTc=
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:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:content-type; s=default; bh=TXe1f8vuXgQnZ
	LvxrjrB0JyRCKA=; b=g0sGXeclUfOvF3gyn35NjZNCqT2BiQiiMrkFfRSuDwtRz
	an0EBUqmOQYyY5YWHty4D8tL1MKMxtm69FQuJ5ekyw+KTFS6is/iCjEmJbnuZj1/
	LaplOAYXaTRbIEFKePShW0leoGXePyKK8wUW32YAit14GB3b9lCAJ4V8fkG7Yw=
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-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=work-around, Files, Tuesday, tuesday
X-HELO: mail-ed1-f48.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:references:in-reply-to:from:date:message-id:subject:to;        bh=1kHlhmzrhz4IPQxwYI2hKjp0F8DPzX3+1/w0EpKILUg=;        b=WIcDxnGZ+1Vy6L3j+W9ug8uYmJbBympIvHFMzIaU5t+GMa3n6JzQXjMOM3EBf+qZJL         o6KDuIAuGhSt2xi95IqBYSfVmNiyOkCR/wHUZfe2pqg1k56zmTl1I4rtt3WbkfUp2n0e         WNVgXRpJLU4b9jNKVinaAi06LE4HARmBQBiNudIE5qNQZoE/uR80SsYrQ1zKy5Hn5kfs         xQ7J5Tm/uxADypWudUzrCtnRE22LsbTYtPcrQxeD12pWgPTltuCM9MdB9nbW/NjzhXXx         jfYr+WWslUEB2vtO3456xLCRm57Y9MmKcw/xybZ0yfPxd8miRV5MynQNqLMbBBnu3dgJ         +XhA==
MIME-Version: 1.0
References: <CAJiKf6Ht6DA4hyVHWCocFwC5CNvkWNTMPZvitGdF-YyTgVYYfA@mail.gmail.com> <1857710854.20191222165411@yandex.ru> <CAJiKf6HiNckg8rHxibwrP=+n-rxobyVmSTH8kaooRtH8MXXmvA@mail.gmail.com> <1466141893.20191224121706@yandex.ru>
In-Reply-To: <1466141893.20191224121706@yandex.ru>
From: Peter Binney <peter.binney@gmail.com>
Date: Sat, 28 Dec 2019 12:25:31 +0000
Message-ID: <CAJiKf6HWP1vv1wN93R0znRnL1A0TNY+5CAm50mny4nrMqcBVPA@mail.gmail.com>
Subject: Re: Files created with CYGWIN have "NULL SID:(DENY)" windows ACL, inter alia
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"

Hello Andrey - many thanks again.

I have added noacl to the default fstab entry, so it reads:
none /cygdrive cygdrive noacl,binary,posix=0,user 0 0

and that sorts out the permissions problem, thank you.

But, bizarrely, it introduced a new one - the WHICH command no longer
reports non-executable files on the PATH.

Such files are found and executed OK (presumably because Windows logic
is adhered to, where execute permission is not required), but WHICH
doesn't "see" them.

So I had to build a work-around for WHICH (which I use in various
scriptware) since I can also find no way to set the execute bit on a
file ("chmod a+x" doesn't seem to do anything with or without noacl).

Thanks again,
Peter


On Tue, 24 Dec 2019 at 09:20, Andrey Repin <anrdaemon@yandex.ru> wrote:
>
> Greetings, Peter Binney!
>
> > Hello Andrey - many thanks for that. I have now removed /etc/passwd
> > and /etc/group which didn't change anything.
>
> > I read some of your earlier posts on this and had already tried the noacl route.
>
> > Unfortunately it has made no difference. I added a second line to my
> > fstab so it read:
>
> > none /cygdrive cygdrive binary,posix=0,user 0 0
>
> Add "noacl" here.
>
> > e: /cygdrive/e ntfs noacl,binary,posix=0,user,auto 0 0
>
> Avoid overlapping mount points. The end result could be surprising.
>
> > with "mount" showing:
>
> > C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
> > C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
> > C:/cygwin on / type ntfs (binary,auto)
> > E: on /cygdrive/e type ntfs (binary,noacl,posix=0,user)
> > C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> > D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
> > N: on /cygdrive/n type smbfs (binary,posix=0,user,noumount,auto)
> > P: on /cygdrive/p type smbfs (binary,posix=0,user,noumount,auto)
>
> > But when creating files on an E: I still get DENY for "NULL SID" and
> > other accounts.
>
> $ cat /etc/fstab && mount
> # For a description of the file format, see the Users Guide
> # http://cygwin.com/cygwin-ug-net/using.html#mount-table
>
> # This is default anyway:
> #none /cygdrive cygdrive binary,posix=0,user 0 0
> none / cygdrive noacl,binary,nouser,posix=0 0 0
> W:/ /var/run ntfs acl,binary,nouser,posix=0 0 0
> C:/Users /home bind noacl,binary,exec,posix=0 0 0
> none /tmp usertemp binary,nouser,posix=1 0 0
>
> C:/Users/ANRDAE~1/AppData/Local/Temp on /tmp type ntfs (binary,usertemp)
> C:/Programs/Cygwin_64/bin on /usr/bin type ntfs (binary,auto)
> C:/Programs/Cygwin_64/lib on /usr/lib type ntfs (binary,auto)
> C:/Programs/Cygwin_64 on / type ntfs (binary,auto)
> C:/Users on /home type ntfs (binary,exec,noacl,posix=0)
> W: on /var/run type ntfs (binary,posix=0)
> C: on /c type ntfs (binary,noacl,posix=0,noumount,auto)
> M: on /m type vfat (binary,noacl,posix=0,noumount,auto)
> Y: on /y type smbfs (binary,noacl,posix=0,noumount,auto)
> Z: on /z type smbfs (binary,noacl,posix=0,noumount,auto)
>
>
> --
> With best regards,
> Andrey Repin
> Tuesday, December 24, 2019 12:14:33
>
> Sorry for my terrible english...
>

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

