DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BGBIo1V3923857
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5BGBIo1V3923857
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=W5JaPAh4
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4C9E4BA2E25
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1765883929;
	bh=DXbMw2DgU/VL5V5TOZS8yzCwx6Y9EWtpZteDHrkHAGU=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=W5JaPAh467asi7gYoR/cZ1qXWCwHsuZ4/ol0g3K8CNENKPY+3r3RlQccTovVCx89v
	 2+OnGK3RS3qxAO/V0+BJMWT54VjuwLkObyVRh9RiD7aJyqO/p7ozDUuo7d73X4L6Jm
	 hZLWg3iNTutOMpA3B2b/6RXcwZzROCL/x7FLMvZY=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A817A4BA2E05
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A817A4BA2E05
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1765883870; cv=none;
 b=rrnQHWBkNuxqY68tacwxzPd2LyeMvFdS8a8rP4WuyqW85noT5bnePDoTeCuqClVhQrGdhUc/LTMxu1YSRUN0Nipi4DLXrRVe/azzit3ma0eXlT1q2rXSVRi/WwvrxDo5STgpC3vzJURhWnF4VqolM/XXrWylk+Q8p8DWGP6qpqA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1765883870; c=relaxed/simple;
 bh=+CnhjGDpBAm8zyhTUg0+x1K8YTTvSeQTj2tZYxCqDY0=;
 h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
 b=pkhp8Xx1k2mMa0YOJGFbQeIL2UoJicpyNiyU1wjfqr+2FlY7fveTeWiaBRZyrfsuZG/uMnRaOitq0oklxUX4ep40XpSvIGwq7X+kH4jF9Y/tdsL4DEi4Ch2LD/rUn3DhM8mE0gz43RK7BTs6eYrRsOmSz6FARAK57DnnN/MwENQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A817A4BA2E05
X-KPN-MessageId: 146f4362-da71-11f0-84a0-005056abad63
X-KPN-MID: 33|E3NmrwtHexE+tOpOmtYsDRiqXIUlhobapQRiD61VkXYhyKVudsyuROCnBoVB+i6
 VxWPZveCX3xRmwLyoOvtjSouUC0rEiMm3I3EsLC/Uspo=
X-KPN-VerifiedSender: Yes
X-CMASSUN: 33|Ic4zejaieB9x218hN3IRQydocnBWpRYSi7GaGXoOd0yxmz47Ei9cYCVsi73htAW
 eq1uUzo5Vica/APeWdbfWWQ==
X-Originating-IP: 77.173.35.122
Message-ID: <448e782a-44cf-4d8c-a782-c8f20d06b5a4@xs4all.nl>
Date: Tue, 16 Dec 2025 12:17:49 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Bug in id command (when using the descr schema - Ch3 UG) ?
To: cygwin@cygwin.com
References: <25c09f45-355c-4ade-a6bd-a0d859893810@xs4all.nl>
 <aUB-xGWv8oZ1o503@calimero.vinschen.de>
Content-Language: en-US
In-Reply-To: <aUB-xGWv8oZ1o503@calimero.vinschen.de>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: "J.H. vd Water via Cygwin" <cygwin@cygwin.com>
Reply-To: "J.H. vd Water" <dhr-incognito@xs4all.nl>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On 12/15/25 22:33, Corinna Vinschen via Cygwin wrote:
> On Dec 15 16:53, J.H. vd Water via Cygwin wrote:
>> After restarting Cygwin ...
>>
>>  - id would show 'Users' as the primary group ...
>>    id -g would show: 545
>>    id -gn would show: Users
>>  - getent passwd | grep Henri would show: Henri:*:<...>:545:U-...
>>  - mkpasswd -l | grep Henri would show: well, see previous line
>>
>> This also applies to W11, except for the id command ...
>>
>> The id command is still showing None as the primary group ... Huh?
>>
>> What did I miss? (why has not anyone else been complaining about this?)
> 
> This has been broken since 2022-12-02, but apparently not many people
> are actually using this feature.
> 
> I have a patchset in the loop which is awaiting review:
> https://sourceware.org/pipermail/cygwin-patches/2025q4/014386.html
> 
> If it's ok, it will land in the next Cygwin version.

Thank you! (you were still working late, were you not?)

Not using this feature? At least, "people at home" now know how easy it
is to change the "primary group" of a local account (provided, of course,
the new primary group is selected from the secondary member group),
... or people at home are just happy with "None" as the primary group.

Back in the old days, I used /etc/{passwd,group}, but as you "wanted" us
NOT to use them, I started experimenting without them on W11.
Reading through Ch3 UG, I stumbled upon the "desc schema" and decided to
give it at try ...
(fortunately I kept W7, so I was able to verify that the trick worked in
 the past) 

Yes, I noted the patchset of last December 5. One of the reasons I was
looking at uinfo.cc

 - pwdgrp::fetch_account_from_windows ()
 - internal_getlogin ()

When I read about "enabled SIDs" (can SID 's be disabled?), I stopped.

Way over my head all this.

So, UNfortunately, I cannot help you with the review.

As you wrote, I just have to wait for the release of the next Cygwin
version, in order to verify whether or not your patch works on W11. 

Regards,

Henri

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