delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/05/12/20:44:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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 AT plebeian DOT 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==;
MIME-Version: 1.0
Date: Tue, 12 May 2020 20:43:30 -0400
From: Chris Wagner <wagnerc AT plebeian DOT com>
To: David <cupcake AT sdf DOT org>
Subject: Re: Groups command failing me in Windows 10
In-Reply-To: <202005121945.04CJjgq5019928@sdf.org>
References: <202005121945 DOT 04CJjgq5019928 AT sdf DOT org>
Message-ID: <9222f81f1de828626cf048a4d938e2af@plebeian.com>
X-Sender: wagnerc AT plebeian DOT 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 AT plebeian DOT com
X-Authenticated-Sender: www16.qth.com: wagnerc AT plebeian DOT 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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.



--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019