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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=T39urP+lh48pz45r
	v21qunBLz0/dyg37baLyzejXX6RkeinCrZpQWTQrKjCgRau8UJWPMxe4bN5WjFB7
	BCT2H1UW6lvOr7ZUGfInbJz4d9RO3ooL2di3S/XjdnXvZEWx5DfuRlAlaPeA9zJb
	XAvFlopBEKtiCK9uR29sfMzXcc8=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=3He/8GT9uS6BadTbTf2Cy7
	SVEUQ=; b=XY51YSwtJ817afeUoS0CCngMsSWfLiTUQpahMnoOilnWmGwRPLmEyS
	8MKFemQNxlDq7j/Xsk8+rQqXjlIC3L2FH0c9dlPQzs6JnbIxufVHY1bGlVF4uK+z
	yEeAjlEubMG6YGsoRXNwJg0tFF7eVSO6T59Xat7qK+TcrIx7iuso8=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Dave, caswell, Caswell, H*f:fgAxArEurBbj
X-HELO: mail-wm0-f44.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=lEzFMYLkUKywWIQHgNFSVAK/OfebP+iXsto1MGn2UkY=;        b=mm+1of0XsGLmx2MtKc+dlAGgdWd24WQMk5Mq8EyYbNPbXFu7pH6i2cjhnmS2Ji+AmD         QkgybvraiN6zw1Yob7sNEHgE4B8BevDaA9KdvsZXE32LvCN2RTASof+PMC/2ATdFaeAi         Ew4EaI40NmeZN5wrx7tNxGE366SIKkkr44tpxV3ivYo8NqAN9ND3HmjPXgeSx3YRZKzc         11kZebUN4TKnHd9eVFwQArUoozkqQfCDNN5gHP0Q4bkOkfBaPhgTiWSN7QldGCGDlUwb         j1UZyUiiMbQ1JlMjeLyvnoy3+TS/OK4D5YcPC+SYo3yu0mF6FYGRLUxNKlmcdJu2n3uX         HvQQ==
X-Gm-Message-State: AOPr4FWDeUJfdJ97STdcQoWAsflosyN5XVEuNk8eo+7+kj28zsaKY9rKOBAp3vPIHCVhOA==
X-Received: by 10.28.95.131 with SMTP id t125mr10335119wmb.80.1461564590126;        Sun, 24 Apr 2016 23:09:50 -0700 (PDT)
Subject: Re: Permission Problems
To: cygwin@cygwin.com
References: <CAG2dRtGFfj8cTefVhwx+fgAxArEurBbj=v8W44VEPZdto2aVRQ@mail.gmail.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <4905822a-0221-0605-4d39-fcfeb52f4e52@gmail.com>
Date: Mon, 25 Apr 2016 08:09:41 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <CAG2dRtGFfj8cTefVhwx+fgAxArEurBbj=v8W44VEPZdto2aVRQ@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 25/04/2016 02:29, Dave Caswell wrote:
> This is a followup to: https://cygwin.com/ml/cygwin/2016-03/msg00345.html
>
> To recap, making three nested directories  on a non-C drive produces a
> third level which is unusable.
>
> davec@MERCURYWIN ~/python
> $ rm -rf g1
> davec@MERCURYWIN ~/python
> $ mkdir g1 g1/g2 g1/g2/g3
> davec@MERCURYWIN ~/python
> $ ls -la g1 g1/g2 g1/g2/g3
> g1:
> total 12
> drwxrwxr-x+ 1 davec None 0 Mar 16 20:23 ./
> drwxrwx---+ 1 davec Users 0 Mar 16 20:23 ../
> drwsrwsr-t+ 1 davec None 0 Mar 16 20:23 g2/
> g1/g2:
> total 0
> drwsrwsr-t+ 1 davec None 0 Mar 16 20:23 ./
> drwxrwxr-x+ 1 davec None 0 Mar 16 20:23 ../
> d--Srws--T+ 1 davec None 0 Mar 16 20:23 g3/
> ls: cannot open directory 'g1/g2/g3': Permission denied
>
> The problem went away with Cygwin 2.5.0-0.7 but is back with 2.5.1-1,
> and goes away when I downgrade back to 2.5.0-1
>
> More info:  I tested on a couple of external drives and things worked
> properly there.   Can I have screwed up the permissions on my D drive
> so that cygwin gets confused but Windows still works?
>
> thanks

It works fine for me.
"E:" is an external NTFS USB disk

$ mount
E:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
E:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
E:/cygwin64 on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)

  $ cd /cygdrive/e/temp

  $ mkdir g1 g1/g2 g1/g2/g3

  $ ls -la g1 g1/g2 g1/g2/g3
g1:
total 4.0K
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 .
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 ..
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 g2

g1/g2:
total 0
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 .
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 ..
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 g3

g1/g2/g3:
total 0
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 .
drwxr-xr-x+ 1 marco Administrators 0 Apr 25 07:59 ..

  $ icacls .
. GE-MATZERI-EU\0356EU:(F)
   BUILTIN\Administrators:(RX)
   Everyone:(RX)
   NT AUTHORITY\SYSTEM:(OI)(CI)(F)
   CREATOR OWNER:(OI)(CI)(IO)(F)
   CREATOR GROUP:(OI)(CI)(IO)(RX)
   Everyone:(OI)(CI)(IO)(RX)

$ icacls g1/g2/g3
g1/g2/g3 NULL SID:(DENY)(Rc,S,REA,X,DC)
          GE-MATZERI-EU\0356EU:(F)
          BUILTIN\Administrators:(RX)
          NT AUTHORITY\SYSTEM:(RX,W,DC)
          Everyone:(RX)
          NULL SID:(OI)(CI)(IO)(DENY)(Rc,S,REA,X,DC)
          CREATOR OWNER:(OI)(CI)(IO)(F)
          CREATOR GROUP:(OI)(CI)(IO)(RX)
          NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(RX,W,DC)
          Everyone:(OI)(CI)(IO)(RX)

I suggest to use icacls and eventually "setfacl -b"
for permission cleaning if needed.

Regards
Marco



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

