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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=EVjPYuyN+zQBVWRz4BNcx64BpLLGIRNyRisZ7XO6YApxInqVj+fnK y+uqxhQcajIcs/XxTOnIFz25onhYZpe2N8GUEOnwEbOqJ3ZEbVy1PIvIJCubM+/F ea4AP5cxMmZtBeFyKFFWM+164JoOYBKzBOaTKKQ2AX1o11LbLF1Hxw= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=SiM/yNIPRnSK3tmzXBcMxqOWdSw=; b=tHBzIhS2OLdcMozig2deTot6jk6Y E8NUghrLEQUp8dqcOBjoAy9C86ofiIab5EUvuAn1QMVbJ8G8g4Oq2z6WcNA4y55e xeFRDQuGQhLiAeEVw6/SxUiWkAZRlrDApX9C0QXG+dVKnaxQdkIAM7UWGOvMq75v +LuSnTzSbqzO/DU= 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=-4.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 14 Apr 2015 10:57:57 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.0.0-3 Message-ID: <20150414085757.GC7343@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <2bbd046b7e2ea40818416d8a6d3f15b8 DOT squirrel AT webmail DOT xs4all DOT nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s8ux8MQukyWAm3r7" Content-Disposition: inline In-Reply-To: <2bbd046b7e2ea40818416d8a6d3f15b8.squirrel@webmail.xs4all.nl> User-Agent: Mutt/1.5.23 (2014-03-12) --s8ux8MQukyWAm3r7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Apr 13 18:10, Houder wrote: > Hi Corinna, >=20 > Perhaps not relevant anymore (since you have returned to the drawing boar= d) ... >=20 > - after installing update 3 to Cygwin 2.0 ... > - created file while being logged on as user Test; subsequently executed= : chmod 460 file > - switched back to user Henri and attempted to touch file: failed > - however, using Cygwin 1.7, and repeating the same procedure, I am able= to touch the file (called file2) >=20 > Regards, >=20 > Henri >=20 > =3D Cygwin 2.0 -- logged on as user Test >=20 > %% uname -a > CYGWIN_NT-6.1-WOW Seven 2.0.0(0.287/5/3) 2015-04-12 21:09 i686 Cygwin > %% pwd > /home/Test > %% id > uid=3D197614(Test) gid=3D197121(None) groups=3D197121(None), ... followed= by irrelevant j. > 545(Users), 4(INTERACTIVE)66049(CONSOLE LOGON),11(Authenticated Users),15= (This Organization),113(Local > acount),4095(CurrentSession), > 66048(LOCAL),262154(NTLM Authentication),401408(Medim Mandatory Level) > %% touch file > %% chmod 460 file > %% echo aha > file > bash: file: Permission denied >=20 > %% getfacl file > # file: file > # owner: Test > # group: None > user::r-- > group::r-x > mask:rw- Huh? So it creates a mask even though it only contains standard POSIX permissions. This explains the "permission denied". The group r-x combined with a mask rw- results in effective r-- permissions for the group None. This yet again calls for adding the output of effective permissions to getacl. I think I fixed the thinko in the code. At one point I noticed that I mishandled the GROUP_OBJ permssions in new-style ACEs and my fix was apparently a bit too efficient :} I uploaded new snapshots to https://cygwin.com/snapshots/ and I'm just uploading a 2.0.0-0.4 release. Please give either of them a try. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --s8ux8MQukyWAm3r7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVLNaVAAoJEPU2Bp2uRE+gMwQQAKZRNd1cPeJOIULuRaW/woJB zot2B4u6fo9AcrLGkoWpKms1qrjpg8Yz6H+dU03gnQvKTAB7XKxkSa82iaOCMYAf /tRQbwanMvwDpDGi5M+vhU6xdFwxWgrfM3QZFxU4ycr09S/7A+7W7vX5xYM3fgTf RMAYJo1fxcAvU2nZ2N1/pOTm9yAzD/PdgF5EbyeUQTCv2DwbPXyYvDz1moJwE1Cq WNjDrOcvq3YRByBUjoTX4ZDCakzeeCtWE4xQLdmueoCjOqVQ+/bWIsikoZ4ADK9r Rn9nhdOlpRtmGO4V2BNzi9NLrxs5DZLhVKpPnhmg72Qa+JgZAGA6cLz34BxP62Ie Des5trJ+146Gj4WKh71UWmtyvjZeuqt7jMv6xoSsWVEXcIfF6qdu847f8UCUk93X IAUMNpWQxaFgXtwbCFM/z/ktOiZM2GkrMcADtj7nzXUXPKjpONj38hqYPDIJQZwE qyK1q9nqptYchZcCxNmQjeBA+RB3pznY7oWKadMBcvzc/6wFwiVHvbNjFCfc20Zh 8LCPyX6lt49yEr7YfFgYcH/POdc4i6NmHt3gvqX4g02ToV+weVsbukmHxniljt0Q psk8NCXnafK8/wuGrOMtHrr8cLcSBsMyz6uhIF3y3CgR4tQIgcpw+0D79KY6JjrU BAxOzFpHe/E6iTvpDhAR =BSNz -----END PGP SIGNATURE----- --s8ux8MQukyWAm3r7--