From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by sourceware.org (Postfix) with ESMTPS id 26D54385DC0B for ; Thu, 14 May 2020 10:05:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 26D54385DC0B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from mxback30g.mail.yandex.net (mxback30g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:330]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 7845A4B019D9; Thu, 14 May 2020 13:05:02 +0300 (MSK) Received: from myt6-016ca1315a73.qloud-c.yandex.net (myt6-016ca1315a73.qloud-c.yandex.net [2a02:6b8:c12:4e0e:0:640:16c:a131]) by mxback30g.mail.yandex.net (mxback/Yandex) with ESMTP id Ehr5ps0Mqt-52HWporh; Thu, 14 May 2020 13:05:02 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1589450702; bh=J7QhatuIVk5So3nKnqgJwTBE0EuuD4CZswWH7+BgYPI=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=ee3ENZ5vbVclcaS5S2todR6TMZHuQWSyAwA1dlFsTIP3a4AQlnPWraoJgbI9SB7gv Tzm0lHq9KBhirEHJ5ceiHp1NIYCOoL6/cx0Mc8rKAs1QxmKGW/oNY2+yxUVqP4atAw 5NvaNRweVHU/b0AISC6nKGP7cZt5nmizjGjdvOxI= Authentication-Results: mxback30g.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by myt6-016ca1315a73.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id OFsF5mw5QJ-51XGUEvZ; Thu, 14 May 2020 13:05:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 14 May 2020 10:04:57 -0000 Date: Thu, 14 May 2020 13:04:57 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <815827926.20200514130457@yandex.ru> To: Chris Wagner , cygwin@cygwin.com Subject: Re: Groups command failing me in Windows 10 In-Reply-To: <9222f81f1de828626cf048a4d938e2af@plebeian.com> References: <202005121945.04CJjgq5019928@sdf.org> <9222f81f1de828626cf048a4d938e2af@plebeian.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_THEBAT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 May 2020 10:05:06 -0000 Greetings, Chris Wagner! > On 2020-05-12 3:45 pm, David wrote: >> The groups command in the cmd window on Windows 10 shows None as my >> first group. >> When I use the dir command to create a file, the security display >> shows no error. >> When I use the touch command to create a file, I get "The permissions >> on ... are incorrectly ordered [NULL if first] > Hi David. The first thing to realize is that POSIX permissions and > Windows ACLs are almost impossible to reconcile. Best to pick one and > ignore the other. > https://cygwin.com/cygwin-ug-net/ntsec.html has additional information. > To set your group you should do it in /etc/passwd. > If you don't have one, do: mkpasswd > /etc/passwd Nope. getent group It will configure correct group file according to current NSS settings. But you don't need to store it. (Or, well, you do, but for very, very, very rare occasions.) > Then edit the file and change the 4th field on the line with your > username to the group Id for Users. No need. > david:*:123456:197153: ->> > david:*:123456:545: > Then restart ALL Cygwin processes and id should show Users as your > primary group. Any files created by a Windows process however will > still put None as the group. > Hope that helps. If you want to configure your user's primary group for Cygwin, you'd have to do it in your user's settings. This is explained in the same article[1], which you quoted, but seemingly not read yourself. [1] https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch -- With best regards, Andrey Repin Thursday, May 14, 2020 13:00:31 Sorry for my terrible english...