delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/25/14:24: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:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=rQJ
Dp98Fqku/3HKX5E1oGpoUc09XqX1mBdLQfKFqft6/VeU3cwarZzqrqJZl5s6uIFU
F2nmRsEr/Ozy8O2l2+pS4pGj8TmHUXuRQYKK0eYOqeMnnsKaaP84gEUWoRgZOH2Y
d7vmq2/P7Qo65w7gP1wWpATkxn26vpE8uDL3Hnzk=
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=0+ibn64KX
4anVHZ0Ystdmaef+UQ=; b=kbW5mIQ/0bkQIY2NO9sD2EazfFzXPXvEYyqYOF7z2
Am8Y7NSh5gG92wvyPt8vrKun9GFb0nViC24EQiuRaM3xu1RLm45jF8YolJwKvJt7
cu3dwtzy2LXfqQkl/+SQ8uyTBCrdrH6jkbU9kM2QLkMlGufO0M+HGXr/gWRydxfO
Xo=
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=-1.1 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: lb1-smtp-cloud6.xs4all.net
Message-ID: <34cefdf7afc52c5d64200db5ec971e66.squirrel@webmail.xs4all.nl>
Date: Wed, 25 Feb 2015 20:23:41 +0100
Subject: chmod: creator owner victimized? ... (1.7.35-0.4)
From: "Houder" <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.18
MIME-Version: 1.0
X-IsSubscribed: yes

Hi Corinna,

Ref: https://cygwin.com/ml/cygwin/2015-02/msg00798.html
 - [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.4

Something for your list of things to think about ... and do later ;-)

For a directory, the 'creator owner' should have sufficient permissions. That is, at least 'full control
minus delete'; full control is good. (yes, as far as I can tell)

(with respect to setfacl, I made a similar remark)

That has changed in 1.7.35-0.4 with respect to chmod ...

As result one cannot 'touch' (create) a file in a subdirectory, that has been created using Explorer.

Henri

-----
List of commands: using 1.7.35-0.4
 - mkdir QL
 - chmod 755 QL
 - create QL/dir2 using Explorer
 - touch QL/dir2/aap <==== fails

@@ uname -a # NON-elevated bash
CYGWIN_NT-6.1-WOW Seven 1.7.35(0.286/5/3) 2015-02-25 13:11 i686 Cygwin
@@ pwd
/drv/e
@@ icacls.sh /drv/e
E:/
   Seven\Henri                        (F)
   Seven\None                         (RX)
   Everyone                           (RX)
   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

@@ mkdir QL
@@ icacls.sh /drv/e/QL
E:/QL
   Seven\Henri                        (F)
   Seven\None                         (RX)
   Everyone                           (RX)
   CREATOR OWNER                      (OI)(CI)(IO)(F) <==== Note: 'F minus delete' will do; F is good
   CREATOR GROUP                      (OI)(CI)(IO)(RX)
   Everyone                           (OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
@@ chmod 755 QL
@@ icacls.sh QL
E:/QL
   Seven\Henri                        (F)
   Seven\None                         (RX)
   Everyone                           (RX)
   CREATOR OWNER                      (OI)(CI)(IO)(RX) <==== NO, INsufficient in case a subdir is created using Explorer
   CREATOR GROUP                      (OI)(CI)(IO)(RX)
   Everyone                           (OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
@@ icacls.sh QL/dir2
E:/QL/dir2
   Seven\Henri                        (I)(RX) <==== dir2 has been created using Explorer
   CREATOR OWNER                      (I)(OI)(CI)(IO)(RX)
   Seven\None                         (I)(RX)
   CREATOR GROUP                      (I)(OI)(CI)(IO)(RX)
   Everyone                           (I)(OI)(CI)(RX)
Successfully processed 1 files; Failed processing 0 files
@@ touch QL/dir2/aap
touch: cannot touch ‘QL/dir2/aap’: Permission denied

@@ mkdir QL/dir
@@ touch QL/dir/aap
@@ icacls.sh QL/dir
E:/QL/dir
   Seven\Henri                        (F)
   Seven\None                         (RX)
   Everyone                           (RX)
   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
@@

-----
List of commands: using 1.7.35-0.3 <==== 3, not 4
 - mkdir QL
 - chmod 755 QL

64-@@ uname -a # NON-elevated bash
CYGWIN_NT-6.1 Seven 1.7.34(0.285/5/3) 2015-02-04 12:14 x86_64 Cygwin
64-@@ pwd
/drv/e

64-@@ mkdir T
64-@@ /opt/home/Henri/bin/icacls.sh T
E:/T
   Seven\Henri                        (F)
   Seven\None                         (RX)
   Everyone                           (RX)
   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
64-@@ chmod 755 T
64-@@ /opt/home/Henri/bin/icacls.sh T
E:/T
   Seven\Henri                        (F)
   Seven\None                         (RX)
   Everyone                           (RX)
   CREATOR OWNER                      (OI)(CI)(IO)(F) <==== Ah!
   CREATOR GROUP                      (OI)(CI)(IO)(RX)
   Everyone                           (OI)(CI)(IO)(RX)
Successfully processed 1 files; Failed processing 0 files
64-@@

=====


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