delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/16/22:18:07

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:to:from:subject:message-id:date
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=vPjoOTxslEIR9Yraf+r4WKhh+HZM427dRcJAJqtRXXvG267XC/+e3
Ej4cuDoQhy8PWAYMhgZdqGkl9z6f2H0gk9aLgRQPdLf4kKwGn8Gdh5f9rEkm2qzx
D4o2Sx+PXFPPpO6M+Qvf9g1XpY2/iZyAjo0ZfnpOTtSxy7PqGSxMmQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:to:from:subject:message-id:date
:mime-version:content-type:content-transfer-encoding; s=default;
bh=bobPvI6oew73slsVdmy+af8k61U=; b=l43e8qdtjQrZ9iMSE7DN2YqaRpOY
jXWaac19Iwk564RQOl2arGufe3d90V28EB3OIch6KPsQUcDi/ACUnvKhI6gXx0UT
w4rAfuEdApY5WC+s2ncJ9rr561XsTIpd2fzl5SJ8L0xk3ebvXUNrVV+KhQ1+U7W7
/s/xRMemoJ5RUEY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Cloud, sk:microso, sk:Microso, rx
X-HELO: csmail.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
To: cygwin <cygwin AT cygwin DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Subject: Permissions change concern
Message-ID: <5712F224.7070308@cs.umass.edu>
Date: Sat, 16 Apr 2016 22:17:08 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT 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 AT 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 AT 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 AT 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 AT 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 AT Surface$ umask
0022
moss AT 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 AT cs DOT umass DOT edu Local account LOCAL Cloud Account Authentication
moss AT 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 AT cs DOT umass DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019