X-Recipient: archive-cygwin AT delorie DOT 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:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=Uj /VLP6C1VMIXm/I45xuWcCHQF/GQdSCWyHXnnoBOyzCOm5JxGtGtvIUa6YLytnMmn EJGRbCcSPdVnEj4IMLQMz4fWvO8gKo5MBG28JHieuk0XP3VCYFfYaQynezDpFTxN 4oyp2s3PS8PSNvBWh/G35fIn7GRk8sgA/Llatmog0= 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:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=SsLTx017 3Rl8WctT1nrQB7XHW0Q=; b=XGeLlAqS42TkbDMUg0+c+9noRkDsu9g4r9rta5ry 3smF23lWXdLAPVlx2Gg9/akrPDjxUXZRPbjGKfrEuagugbzpLWKmQVo/Fw92r4pg KxNpNUR7do0XdiyPH+TO0vxb2seWAZAY8C2eNC3+fHatYsCDd4QwTl9GpH26PQbT 4lY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=marcoatzerigmailcom, marco DOT atzeri AT gmail DOT com, backing, wound X-HELO: mail-oi0-f51.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=nhv5/YLsPHb+B555wGE0IZD91RwX6bXLt0NB5IGpkv0=; b=HgbAB43SC53IhCBAMRR10mK5uhfcKmOb/7IGtIsqCCd/9NEdsVv6aMsMA5Qb9hsrPS G8i9Y2+SpKsZE3nzQIFya6DhhohO2KeCwwCvsCENc6gAmbFBMYzGG9ipD+0AAkCgZCCR Sx4FJJGAxETpx6wX6I1moX72WL0OzAJOBrOGd7uWEVsLHb7UhjG7HPOEDShPS2sAkGm+ LsjfW39hfsC04/IuNHJDsQgmBd4+n37OwlZ8qaVvMQK49QGJchqYTFNS7tt4TBxUBqCp y3Vo+DxNWDKskQdeBuVfHwV7R9nlQfRvJENvWYsiF+QLSYOsgAZ7+Tn0WDuL8ucf71rO 3tkg== X-Gm-Message-State: AOPr4FUQhKi03AlOuH8Jn94rI++mlU9pTJVwdpdONYl7zPEtA1pdx2QyeF41Dr02V5q7DXcTukNa1V959XKX4w== MIME-Version: 1.0 X-Received: by 10.202.74.195 with SMTP id x186mr13689194oia.104.1461634082215; Mon, 25 Apr 2016 18:28:02 -0700 (PDT) In-Reply-To: <4905822a-0221-0605-4d39-fcfeb52f4e52@gmail.com> References: <4905822a-0221-0605-4d39-fcfeb52f4e52 AT gmail DOT com> Date: Mon, 25 Apr 2016 19:28:02 -0600 Message-ID: Subject: Re: Permission Problems From: Dave Caswell To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Mon, Apr 25, 2016 at 12:09 AM, Marco Atzeri wrote: > 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 AT MERCURYWIN ~/python >> $ rm -rf g1 >> davec AT MERCURYWIN ~/python >> $ mkdir g1 g1/g2 g1/g2/g3 >> davec AT 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. What wound up doing was backing up all the files from my documents disk to a scratch disk, reformatting the documents disk, and restoring the backup, and finally running icacls /reset on the whole drive. This seems to have my system working ok now. But there is still something different about 2.5.0-1 that prevented it from writing a confused ACL. -- 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