From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20669 invoked by alias); 25 Apr 2016 06:10:04 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20648 invoked by uid 89); 25 Apr 2016 06:10:03 -0000 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 Received: from mail-wm0-f44.google.com (HELO mail-wm0-f44.google.com) (74.125.82.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 25 Apr 2016 06:09:53 +0000 Received: by mail-wm0-f44.google.com with SMTP id n3so109965975wmn.0 for ; Sun, 24 Apr 2016 23:09:52 -0700 (PDT) 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) Received: from [172.21.188.188] ([62.154.173.198]) by smtp.googlemail.com with ESMTPSA id gt7sm21807559wjc.1.2016.04.24.23.09.49 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2016 23:09:49 -0700 (PDT) Subject: Re: Permission Problems To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <4905822a-0221-0605-4d39-fcfeb52f4e52@gmail.com> Date: Mon, 25 Apr 2016 10:30:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00590.txt.bz2 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