From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19203 invoked by alias); 5 May 2014 14:47:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19194 invoked by uid 89); 5 May 2014 14:47:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 05 May 2014 14:47:49 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id AD77D8E09EA; Mon, 5 May 2014 16:47:45 +0200 (CEST) Date: Mon, 05 May 2014 14:47:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Problem with "None" Group on Non-Domain Members Message-ID: <20140505144745.GA6993@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <536796E4.2090009@breisch.org> <20140505135928.GK30918@calimero.vinschen.de> <53679D5C.5030209@breisch.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <53679D5C.5030209@breisch.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-05/txt/msg00062.txt.bz2 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2417 On May 5 10:17, Chris J. Breisch wrote: > Corinna Vinschen wrote: > >On May 5 09:49, Chris J. Breisch wrote: > >As far as Cygwin tools are concerned, the None group is just a normal > >group like any other group. The behaviour you're observing looks a bit > >like either your group file is not ok, or you're testing this with the > >noacl mount option. Or, probably more likely, you're suffereing from > >the default ACL settings propagated from the parent directory. > > > >When Cygwin sets the POSIX permissions, it does exactly the same thing > >for the primary group in your token, whether it's None or any other > >group. > > > > > I understand what you're saying, but I don't think the behavior > agrees with your statements. I've tried this on a couple different > machines, and the behavior is identical. No matter what I do, if a > file is created with the "None" group, the group file permissions > are always identical to the owner file permissions. I've tried > playing with my umask and with directory sticky bits. It doesn't > matter. I wasn't talking about the POSIX permissions, but about the Windows ACL. In your current dir, what does `icacls .' print? Maybe that gives a clue. > In the example above, my parent directory is rather oddly, > Chris.Users 000. The current directory is Chris.None 775. I just tried it myself with a local machine account and I can't reproduce this. My pgid is "None" and the umask of 0022 leads to the expected POSIX permissions: vmbert8164+lcorinna@vmbert8164 ~ $ umask 0022 vmbert8164+lcorinna@vmbert8164 ~ $ touch bar vmbert8164+lcorinna@vmbert8164 ~ $ ls -l total 0 -rw-r--r-- 1 vmbert8164+lcorinna vmbert8164+None 0 May 5 16:41 bar > [...] > Taking the example one step farther: >=20 > $ chmod 600 bar > $ ls -l bar > -rw-rw---- 1 Chris None 0 May 5 10:10 bar > $ chmod 400 bar > $ ls -l bar > -r--r----- 1 Chris None 0 May 5 10:10 bar vmbert8164+lcorinna@vmbert8164 ~ $ chmod 400 bar vmbert8164+lcorinna@vmbert8164 ~ $ ls -l bar -r-------- 1 vmbert8164+lcorinna vmbert8164+None 0 May 5 16:41 bar So I'd say it's not a generic issue but something in your environment. It would be nice to know what that is, of course. Maybe there's some security setting?!? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTZ6SRAAoJEPU2Bp2uRE+gwO8QAIr36PkbhZpLOIlIM614oe1K OT4DtfKiqKnOTuOM+3xou1CD3LYfNixUdHRcPOwOSZT0qYgC/N/Juted4+HxL99G D3XUYHnYMlfugNriX/T2rUE2pGwnZ6GnWieJmh3CSm1DP/1JKFG/+dNwrqnaw/tW XsIa/i1SlqXcDyJdzyrIszv/CrNUMgupRI/ThHkZ/qy108qQZocQbHQcxqj5Sncg L1gwWQdPiHAucFhhAiP2YiEjor3Bd7+U58RFJ42K1HWgD9VSE7UcPqcwbWT87LvN EiGUb9IrqVDjIG3UeMKblPXQNTotv8/L3kwTPFYgOFYU0Xmka+GQqAj8uC6XdEJQ hFYX13nKK2iuvQy++tdxubz37B6NdiKL4SyLGNDNanTf/e/mnhza76t2dnzd4gdm QjL5p9oCUFkr34lqYiZ62F12WDgJ11R0WvuxarFjCza08Xt0K01dNyJh8bbwUfw+ WArxDXGCA/rHZA+1hUOMtFHaSZHiSzRLsAvcrtEKGp4BFGNymRKUuw6Mh67zdqpX UnS4lAHuKtm97bo+LKb4PRQ1cZArikimLh7HN4pu2p4WBSF0P37klE5ndkkM4MJq 1RV6IiT3ubitMBMn6WXvd5empJV8zxPk73B4KbzBrswfjUdlSXPzU8bvu2rSD6Y3 E5lLbKiB81OAhKFknp2S =mB7P -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--