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

Reply via email to