public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Permission Problems
@ 2016-04-25  1:03 Dave Caswell
  2016-04-25 10:30 ` Marco Atzeri
  2016-04-25 12:43 ` Tatsuro MATSUOKA
  0 siblings, 2 replies; 5+ messages in thread
From: Dave Caswell @ 2016-04-25  1:03 UTC (permalink / raw)
  To: cygwin

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Permission Problems
  2016-04-25  1:03 Permission Problems Dave Caswell
@ 2016-04-25 10:30 ` Marco Atzeri
  2016-04-26  7:53   ` Dave Caswell
  2016-04-25 12:43 ` Tatsuro MATSUOKA
  1 sibling, 1 reply; 5+ messages in thread
From: Marco Atzeri @ 2016-04-25 10:30 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Permission Problems
  2016-04-25  1:03 Permission Problems Dave Caswell
  2016-04-25 10:30 ` Marco Atzeri
@ 2016-04-25 12:43 ` Tatsuro MATSUOKA
  2016-04-26  1:28   ` Dave Caswell
  1 sibling, 1 reply; 5+ messages in thread
From: Tatsuro MATSUOKA @ 2016-04-25 12:43 UTC (permalink / raw)
  To: Dave Caswell, cygwin

> From: Dave Caswell 
> To: cygwin
           > Cc: 
> Date: 2016/4/25, Mon 09:29
> Subject: Permission Problems
> 
>T his 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
> 
Perhaps workaround is to use the beloe
$ cygstart --action=runas (cygwin command) 

In your case,
$ cygstart --action=runas ls -la g1 g1/g2 g1/g2/g3
Tatsuro

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Permission Problems
  2016-04-25 12:43 ` Tatsuro MATSUOKA
@ 2016-04-26  1:28   ` Dave Caswell
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Caswell @ 2016-04-26  1:28 UTC (permalink / raw)
  To: Tatsuro MATSUOKA; +Cc: cygwin

On Mon, Apr 25, 2016 at 4:30 AM, Tatsuro MATSUOKA
<tmacchant2@yahoo.co.jp> wrote:
>> From: Dave Caswell
>> To: cygwin
>            > Cc:
>> Date: 2016/4/25, Mon 09:29
>> Subject: Permission Problems
>>
>>T his 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
>>
> Perhaps workaround is to use the beloe
> $ cygstart --action=runas (cygwin command)
>
> In your case,
> $ cygstart --action=runas ls -la g1 g1/g2 g1/g2/g3
> Tatsuro

The problem is the creation of a directory (or file) with a mangled
ACL..  at least windows isn't capable of dealing with the directory
either.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Permission Problems
  2016-04-25 10:30 ` Marco Atzeri
@ 2016-04-26  7:53   ` Dave Caswell
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Caswell @ 2016-04-26  7:53 UTC (permalink / raw)
  To: cygwin

On Mon, Apr 25, 2016 at 12:09 AM, Marco Atzeri <marco.atzeri@gmail.com> 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@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.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-26  1:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-25  1:03 Permission Problems Dave Caswell
2016-04-25 10:30 ` Marco Atzeri
2016-04-26  7:53   ` Dave Caswell
2016-04-25 12:43 ` Tatsuro MATSUOKA
2016-04-26  1:28   ` Dave Caswell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).