X-Recipient: archive-cygwin@delorie.com X-Original-To: cygwin@cygwin.com Delivered-To: cygwin@cygwin.com 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 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 Date: Thu, 14 May 2020 13:04:57 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home 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 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: , Reply-To: cygwin@cygwin.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces@cygwin.com Sender: "Cygwin" 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... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple