From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www16.qth.com (www16.qth.com [69.16.238.67]) by sourceware.org (Postfix) with ESMTPS id A469F386F012 for ; Wed, 13 May 2020 00:43:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A469F386F012 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=plebeian.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=wagnerc@plebeian.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=plebeian.com; s=default; h=Message-ID:References:In-Reply-To:Subject:Cc:To: From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ub/UZHjyxhemArkvxZ/cR5aoW0tevKCnpHERyNR31L8=; b=VKq2oC25arE49L22534tgrz/Tt C+j7FNo86jjhSMeTRs1+23BDYGD2QSnEH4M4mRU5C+e3uNPLgYmdd5AlogXlYMsDNPMKd9/wxrrcp fpJU74FnRiduS7mPNJLVGoH/by94cYi0ts9R9UQ6VPX/dAJD5WAts3Sf/EzSaIpFS6Ln5rWkzQA7d MCbITXnSMjyYwFSLR8B1lu2KT2lJ0uXsfT2c5uQDG6TD09T+XUO6LzR+AsoCyI+YhnNTJvJlwshK2 6quqpWMvQascnANFCBGbjxT1AsvWvbFbU1GCzwCMPaXdhSOwGGFedvnbrChAL+spUzumCMEv4BPlc ODLxHumg==; Received: from [127.0.0.1] (port=44282 helo=www16.qth.com) by www16.qth.com with esmtpa (Exim 4.93) (envelope-from ) id 1jYfUg-003Zbt-HC; Tue, 12 May 2020 19:43:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 12 May 2020 20:43:30 -0400 From: Chris Wagner To: David Cc: cygwin@cygwin.com Subject: Re: Groups command failing me in Windows 10 In-Reply-To: <202005121945.04CJjgq5019928@sdf.org> References: <202005121945.04CJjgq5019928@sdf.org> Message-ID: <9222f81f1de828626cf048a4d938e2af@plebeian.com> X-Sender: wagnerc@plebeian.com User-Agent: Roundcube Webmail/1.3.8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - www16.qth.com X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - plebeian.com X-Get-Message-Sender-Via: www16.qth.com: authenticated_id: wagnerc@plebeian.com X-Authenticated-Sender: www16.qth.com: wagnerc@plebeian.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham 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: Wed, 13 May 2020 00:43:33 -0000 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 Then edit the file and change the 4th field on the line with your username to the group Id for Users. 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. Thanks.