delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/11/09:26:16

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:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=IAH
xfw0wlAzsfkdxP+3Eoghhu6URTicdWICi+HNRQHSG3DUqlN06QmKRg50YvRNn0pq
HSFjbuDb3lRGIv1GWPCamgdcw0UPVPsTHxx5N0hWtMLSX+uY4BxR49FIitQHRwTi
iBt+p8vtaX1CpqQXXF799w8/Hp4iS8BorPgai2uQ=
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:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; s=default; bh=RpG4GzNbx
9cOcibXnRttj2nuGf4=; b=nZgRfVImohqqUUPHKByHdQ0nxVfh8iGzE9MF6kB/H
JUGluBbfhkefrNKw1omfUFqbrXKE5QgHwI0iVxmX90UWRW17PUi0YYMsoPr1uheW
6SQ+MItyQ4Mep+gVNhUWtRqUjr3jcjr+rvVyUHm3Q19DTHDBV5/eB8uY7mRqv5e2
iw=
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.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2
X-HELO: lb3-smtp-cloud6.xs4all.net
Message-ID: <e0dc59a93e73f1f16999723c13dc1d85.squirrel@webmail.xs4all.nl>
Date: Sat, 11 Apr 2015 15:25:46 +0200
Subject: Correct? (Cygwin 2.0)
From: "Houder" <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.22
MIME-Version: 1.0
X-IsSubscribed: yes

Hi Corinna,

Reference: https://cygwin.com/ml/cygwin/2015-04/msg00201.html
 - [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-1

Sorry, Corinna, but I have to ask: will this be the correct behaviour of Cygwin
from now on? ... because I am very much surprised ...

Is there anything I can do (settings directory?) ... to "improve" on what I am
experiencing now?

I create a file (called aap), do not modify its properties (chmod), and then it
turns out that the properties have changed ... Surprise!

Regards,

Henri

 - reinstalled Cygwin, selected Cygwin 2.0
 - using an UNelevated bash shell
 - touch aap
 - chmod -x aap # afterwards the write-bit turns out to be set for group None!
 - chmod -w aap # does not help! (no modification)

%% uname -a
CYGWIN_NT-6.1-WOW Seven 2.0.0(0.287/5/3) 2015-04-10 20:51 i686 Cygwin
%% umask
0022
%% pwd
/home/Henri
%% icacls.sh .
E:/Cygwin-test/home/Henri/
   NULL SID                           (DENY)(Rc,S,REA,X,DC)
   Seven\Henri                        (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

#
%% touch aap
%% ls -l aap
-rw-r--r-- 1 Henri None 0 Apr 11 14:36 aap
%% icacls.sh aap
E:/Cygwin-test/home/Henri/aap
   NULL SID                           (DENY)(Rc,S,X,DC)
   Seven\Henri                        (R,W,D,WDAC,WO)
   Seven\None                         (DENY)(S,X)
   Seven\None                         (RX)
   Everyone                           (R)
Successfully processed 1 files; Failed processing 0 files
%% ls-facl.sh aap
   Owner: Seven\Henri
   Group: Seven\None
   DACL(protected):
   NULL SID                           FILE_TRAVERSE+FILE_DELETE_CHILD+READ_CONTROL
                                                                         deny      no_inheritance
   Seven\Henri                        write+read+WRITE_OWNER+WRITE_DAC+DELETE
                                                                         allow     no_inheritance
   Seven\None                         FILE_TRAVERSE                      deny      no_inheritance
   Seven\None                         read_execute                       allow     no_inheritance
   Everyone                           read                               allow     no_inheritance
SetACL finished successfully.

#
%% chmod -x aap
%% ls -l aap
-rw-rw-r-- 1 Henri None 0 Apr 11 14:36 aap                              # Huh?
%% icacls.sh aap
E:/Cygwin-test/home/Henri/aap
   NULL SID                           (DENY)(Rc,S,WEA,X,DC)             # extended write attributes?
   Seven\Henri                        (R,W,D,WDAC,WO)
   Seven\None                         (DENY)(S,X)
   Seven\None                         (RX)
   Everyone                           (R)
Successfully processed 1 files; Failed processing 0 files
%% ls-facl.sh aap
E:/Cygwin-test/home/Henri/aap
   Owner: Seven\Henri
   Group: Seven\None
   DACL(protected):
   NULL SID                           FILE_WRITE_EA+FILE_TRAVERSE+FILE_DELETE_CHILD+READ_CONTROL
                                                                         deny      no_inheritance
   Seven\Henri                        write+read+WRITE_OWNER+WRITE_DAC+DELETE
                                                                         allow     no_inheritance
   Seven\None                         FILE_TRAVERSE                      deny      no_inheritance
   Seven\None                         read_execute                       allow     no_inheritance
   Everyone                           read                               allow     no_inheritance
SetACL finished successfully.

#
%% chmod g-w aap
%% icacls.sh aap
E:/Cygwin-test/home/Henri/aap
   NULL SID                           (DENY)(Rc,S,WEA,X,DC)
   Seven\Henri                        (R,W,D,WDAC,WO)
   Seven\None                         (DENY)(S,X)
   Seven\None                         (RX)
   Everyone                           (R)
Successfully processed 1 files; Failed processing 0 files
%% ls-facl.sh aap
E:/Cygwin-test/home/Henri/aap
   Owner: Seven\Henri
   Group: Seven\None
   DACL(protected):
   NULL SID                           FILE_WRITE_EA+FILE_TRAVERSE+FILE_DELETE_CHILD+READ_CONTROL
                                                                         deny      no_inheritance
   Seven\Henri                        write+read+WRITE_OWNER+WRITE_DAC+DELETE
                                                                         allow     no_inheritance
   Seven\None                         FILE_TRAVERSE                      deny      no_inheritance
   Seven\None                         read_execute                       allow     no_inheritance
   Everyone                           read                               allow     no_inheritance
SetACL finished successfully.

=====




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