This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-3


> On Apr 14 17:01, Houder wrote:
>> %% uname -a
>> CYGWIN_NT-6.1-WOW Seven 2.0.0(0.287/5/3) 2015-04-14 10:45 i686 Cygwin
>> %% pwd
>> /home/Test
>> %% touch alfa
>> %% chmod 460 alfa
>> %% echo aha > alfa
>> bash: alfa: Permission denied           # no problem here ...
>>
>> %% getfacl alfa
>> # file: alfa
>> # owner: Test
>> # group: None
>> user::r--
>> group::r-x
>> mask:rw-
>> other:---
>> %% icacls alfa
>> alfa NULL SID:(DENY)(Rc,S,WEA,X,DC)
>>      Seven\Test:(DENY)(S,WD,AD,WEA,DC)
>>      Seven\Test:(R,D,WDAC,WO,WA)
>>      Seven\None:(DENY)(S,X)
>>      Seven\None:(RX)
>>      Everyone:(Rc,S,RA)
>>      Successfully processed 1 files; Failed processing 0 files
>> %%
>
> This looks exactly like the ACL created by -0.3.  It produces this MASK
> value.  The rest is just the logical consequence.  But it doesn't do
> that for me:
>
>   $ uname -a
>   CYGWIN_NT-6.3 vmbert8164 2.0.0(0.287/5/3) 2015-04-14 10:47 x86_64 Cygwin
>   $ touch alfa
>   $ getfacl alfa
>   # file: alfa
>   # owner: corinna
>   # group: vinschen
>   user::rw-
>   group::r--
>   other:r--
>
>   $ chmod 460 alfa
>   $ getfacl alfa
>   # file: alfa
>   # owner: corinna
>   # group: vinschen
>   user::r--
>   group::rw-
>   other:---
>
>   $ icacls alfa | cat
>   alfa NULL SID:(DENY)(Rc,S)
>        VINSCHEN\corinna:(DENY)(S,WD,AD,WEA,DC)
>        VINSCHEN\corinna:(R,D,WDAC,WO,WA)
>        VINSCHEN\vinschen:(R,W)
>        Everyone:(Rc,S,RA)
>
> The only reason I can think of is that the parent dir has default
> permissions which imply the mask value already.  So, what does
> `icacls . | cat' in this directory print?

%% icacls . | cat
. NULL SID:(DENY)(Rc,S,REA,X,DC)
  Seven\Test:(F)
  Seven\None:(RX)
  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)
  Everyone:(OI)(CI)(IO)(RX)

Successfully processed 1 files; Failed processing 0 files

>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Maintainer                 cygwin AT cygwin DOT com
> Red Hat
>



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]