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]

chmod: creator owner victimized? ... (1.7.35-0.4)


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


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