Greetings, Eliot Moss!

> Dear Corinna (et al.):  I have set up to use a separate group that I call
> Cygwin for files in my cygwin tree, and in the recent past have been able to
> apply chown, chgrp, and chmod effectively.  With the latest version, chmod
> fails to change permissions, though I can change them with setfacl (a pain).

I may be shooting in the dark, but do try to set "Cygwin" as your user's
primary group.
Instructions how to do so should be around nsswitch documentation.
If I'm not confusing things. Sorry. It was well before 2.0 I fixed my ACL
issues and didn't touched them settings since.

> Here's a sample file:

> moss@Surface$ icacls random-1000k-comp.auto
> random-1000k-comp.auto ELIOT-SURFACE-2\moss:(R,W,D,WDAC,WO)
>                         ELIOT-SURFACE-2\Cygwin:(R,W)
>                         NT AUTHORITY\SYSTEM:(R)
>                         ELIOT-SURFACE-2\Cygwin:(RX,W)
>                         Everyone:(R)

> Successfully processed 1 files; Failed processing 0 files
> moss@Surface$ getfacl random-1000k-comp.auto
> # file: random-1000k-comp.auto
> # owner: moss
> # group: Cygwin
> user::rwx
> group::rw-
> group:SYSTEM:r--
> group:Cygwin:rwx
> mask:rwx
> other:r--

> moss@Surface$ ls -l random-1000k-comp.auto
> -rwxrwxr--+ 1 moss Cygwin 74 Apr 16 15:40 random-1000k-comp.auto


> It may be helpful to see also how the containing directory is set up:

> moss@Surface$ icacls .
> . NULL SID:(DENY)(Rc,S,WD,REA,WEA,X,DC)
>    ELIOT-SURFACE-2\moss:(F)
>    ELIOT-SURFACE-2\Cygwin:(Rc,S,RA)
>    NT AUTHORITY\SYSTEM:(RX)
>    ELIOT-SURFACE-2\Cygwin:(Rc,S,RA)
>    ELIOT-SURFACE-2\Cygwin:(DENY)(S,RD,REA,X)
>    Everyone:(RX)
>    NULL SID:(OI)(CI)(IO)(DENY)(Rc,S,WD,REA,WEA,X,DC)
>    CREATOR OWNER:(OI)(CI)(IO)(F)
>    ELIOT-SURFACE-2\Cygwin:(OI)(CI)(IO)(RX,W,DC)
>    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(RX)
>    ELIOT-SURFACE-2\Cygwin:(OI)(CI)(IO)(RX,W,DC)
>    Everyone:(OI)(CI)(IO)(RX)

> Successfully processed 1 files; Failed processing 0 files
> moss@Surface$ getfacl .
> # file: .
> # owner: moss
> # group: Cygwin
> # flags: -s-
> user::rwx
> group::---
> group:SYSTEM:r-x
> group:Cygwin:---
> mask:rwx
> other:r-x
> default:user::rwx
> default:group::rwx
> default:group:SYSTEM:r-x
> default:group:Cygwin:rwx
> default:mask:rwx
> default:other:r-x


> Here is umask, group, and identity information:

> moss@Surface$ umask
> 0022
> moss@Surface$ groups
> moss High Mandatory Level Local account and member of Administrators group 
> Cygwin Administrators
> Users INTERACTIVE CONSOLE LOGON Authenticated Users This Organization 
> microsoftaccount+m...@cs.umass.edu Local account LOCAL Cloud Account 
> Authentication
> moss@Surface$ id
> uid=197609(moss) gid=197609(moss) groups=197609(moss),405504(High Mandatory 
> Level),114(Local account
> and member of Administrators 
> group),197610(Cygwin),544(Administrators),545(Users),4(INTERACTIVE),66049(CONSOLE
> LOGON),11(Authenticated Users),15(This 
> Organization),68585(microsoftaccount+m...@cs.umass.edu),113(Local 
> account),66048(LOCAL),262180(Cloud
> Account Authentication)


> The specific behavior I get is that chmod 644 on the file has no effect on 
> the file's permissions -
> they stay at 774.

> So, has something in cygwin "broken", or is there some setting I should be 
> doing a different way?

> Regards -- Eliot Moss

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




-- 
With best regards,
Andrey Repin
Monday, April 18, 2016 00:36:38

Sorry for my terrible english...


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

Reply via email to