On Apr 14 16:18, Houder wrote:
> > On Apr 13 18:10, Houder wrote:
> 
> >>  = Cygwin 2.0 -- logged on as user Test
> >>
> >> %% uname -a
> >> CYGWIN_NT-6.1-WOW Seven 2.0.0(0.287/5/3) 2015-04-12 21:09 i686 Cygwin
> >> %% pwd
> >> /home/Test
> >> %% id
> >> uid=197614(Test) gid=197121(None) groups=197121(None), ... followed by 
> >> irrelevant j.
> >> 545(Users), 4(INTERACTIVE)66049(CONSOLE LOGON),11(Authenticated 
> >> Users),15(This Organization),113(Local
> >> acount),4095(CurrentSession),
> >> 66048(LOCAL),262154(NTLM Authentication),401408(Medim Mandatory Level)
> >> %% touch file
> >> %% chmod 460 file
> >> %% echo aha > file
> >> bash: file: Permission denied
> >>
> >> %% getfacl file
> >> # file: file
> >> # owner: Test
> >> # group: None
> >> user::r--
> >> group::r-x
> >> mask:rw-
> >
> > Huh?  So it creates a mask even though it only contains standard POSIX
> > permissions.  This explains the "permission denied".  The group r-x
> > combined with a mask rw- results in effective r-- permissions for the
> > group None.  This yet again calls for adding the output of effective
> > permissions to getacl.
> 
> Now I am confused ...
> 
> Permission denied above (logon as user Test) did NOT surprise me ... It was
> the 'write denial' after that (logon as user Henri).

Yes.  That's what I explained.  The user Henri has only access to the
file via the permissions of None or Everyone.  Since the wrongly created
mask only allowed read permissions to group None, Henri has no write
perms.

> Btw, I installed update 4 to Cygwin 2.0 ... and observe no change in the 
> output
> of getfacl, icacls ... also user Henri is still denied write access ...

Did you re-create the file?


Corinna

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

Attachment: pgpjqAMBjWkFz.pgp
Description: PGP signature

Reply via email to