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:in-reply-to:references:date:subject :from:to:mime-version:content-type:content-transfer-encoding; q= dns; s=default; b=GDut/EbMUIOXwPfrbQdBg697ZTmXP2CsTKlgBPVBIQhtJJ npZI7Gm4lRIL4O0v26t081D/4BLVhhIcKXLSf+nOCV1FGAsAi829Cc60SiG/Jqr4 mPLdQkzVV46FuIat6dFcpGw0zQ016QLs8altiLR60YVU9qLEkk4fmn3eTVLJQ= 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:in-reply-to:references:date:subject :from:to:mime-version:content-type:content-transfer-encoding; s= default; bh=utRLqy5n58y3yWCVNTWhjzGS8sY=; b=WDJHDDxy5DLsRrxPxp5R HW1jjnMBfaxkP/Q6+Rol3mzSoh6SNkKHyT60HsPgEjgQtCLfq+92+okbqKegQ++T hbA1pXIMTeNWmuPupmdOL6IQoDNGniJc0ZYaDg8qOjr+HaEDX6JwaV3bb7UVVtHP Xy4RZH5zzcn7HrUnIwgGssE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: lb3-smtp-cloud6.xs4all.net Message-ID: <050ca7cfc21226b215954b13998cd0b5.squirrel@webmail.xs4all.nl> In-Reply-To: <20150225203108.GC9628@calimero.vinschen.de> References: <34cefdf7afc52c5d64200db5ec971e66 DOT squirrel AT webmail DOT xs4all DOT nl> <20150225203108 DOT GC9628 AT calimero DOT vinschen DOT de> Date: Wed, 25 Feb 2015 22:04:40 +0100 Subject: Re: chmod: creator owner victimized? ... (1.7.35-0.4) From: "Houder" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.18 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes > Hi Henri, > > On Feb 25 20:23, Houder wrote: >> 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) > > Yeah, I noticed that problem myself a few hours ago and applied a fix in > the meantime. In CVS, the chmod workaround does not touch the CREATOR > OWNER, CREATOR GROUP and Everyone default ACEs anymore. I'll create a > snapshot and another test release soon. Good ... For the record: in addition to RX, W and DC, at least take ownership should be present, I believe. Otherwise, chown will bark. (the example below uses setfacl) Henri ----- @@ uname -a # using 1.7.35-0.4 CYGWIN_NT-6.1-WOW Seven 1.7.35(0.286/5/3) 2015-02-25 13:11 i686 Cygwin @@ mkdir QL @@ setfacl -b QL <==== setfacl @@ icacls.sh QL E:/QL Seven\Henri (F) Seven\None (RX) Everyone (RX) CREATOR OWNER (OI)(CI)(IO)(RX,W,DC) <==== enough? CREATOR GROUP (OI)(CI)(IO)(RX) Everyone (OI)(CI)(IO)(RX) Successfully processed 1 files; Failed processing 0 files @@ chown Henri:None QL/dir2 # dir2 has been created using Explorer chown: changing ownership of ‘QL/dir2’: Permission denied <==== Euh? @@ icacls.sh QL/dir2 E:/QL/dir2 Seven\Henri (I)(RX,W,DC) CREATOR OWNER (I)(OI)(CI)(IO)(RX,W,DC) Seven\None (I)(RX) CREATOR GROUP (I)(OI)(CI)(IO)(RX) Everyone (I)(OI)(CI)(RX) Successfully processed 1 files; Failed processing 0 files @@ ls-facl.sh QL/dir2 E:/QL/dir2 Owner: Seven\Henri <==== I am the owner! Group: Seven\None DACL(not_protected): Seven\Henri read_execute+write+FILE_DELETE_CHILD allow no_inheritance CREATOR OWNER read_execute+write+FILE_DELETE_CHILD allow container_inherit+object_inherit+inherit_only Seven\None read_execute allow no_inheritance CREATOR GROUP read_execute allow container_inherit+object_inherit+inherit_only Everyone read_execute allow container_inherit+object_inherit 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