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]

Permissions change concern


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

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+moss@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+moss@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


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