From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 607DA3858D20; Tue, 20 Feb 2024 20:45:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 607DA3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1708461919; bh=Z6ACSa+y8YiJz+PN9MjYcMB5hFMY8H584a3oln8t+pA=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=Q7+/a2SGp1q/34qbv0XmUlooldeznXjjZXxbHHPMEld0av0uFNza20jDkv5fFWpnd N0vCrs9TJ55/Ce7XLD1eUPh58Kk2EFShXmc1e9CVz9UtxuH1aIGXTKPXI6j5lkxo+z wlTUmd1WapiVeM8hI+kGsQK/rK/aM+veOcrvZpEA= Received: by calimero.vinschen.de (Postfix, from userid 500) id 42328A80A71; Tue, 20 Feb 2024 21:45:17 +0100 (CET) Date: Tue, 20 Feb 2024 21:45:17 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: On Feb 20 17:24, Dan Shelton via Cygwin wrote: > On Tue, 20 Feb 2024 at 10:57, Corinna Vinschen via Cygwin > wrote: > > > > On Feb 20 05:13, Dan Shelton via Cygwin wrote: > > > Hello! > > > > > > I think I found a rather nasty bug: > > > 1. Add a new group with "net localgroup mygrp1 /add" > > > 2. Then list all groups with "getent group", the new group mygrp1 will > > > not show up. "getent group mygrp1" will list it, but this is useless > > > in my case, as I need the group listed by "getent group" > > > > I guess we can rule out a domain controller but is this a standalone > > machine or a domain member machine? > > Standalone test machine, stock Windows 10 installed 2 days ago, > current patches, Cygwin 3.5 from 2 days ago. > > > > > What's the setting of your /etc/nsswitch.conf? > > Only comments in that file, i.e. empty Please set the db_enum: line to db_enum: all and try again after exiting from the shell window. Have a look at https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch for the settings. By default account enumeration only returns the bare minimum for speed. Btw, there *is* a bug in that code, but it affects only domain menber machines, afaics. Corinna