X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 098C43858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1708675890; bh=NujaDfCHguvNQ7l24KFwYPPUhjvAKaHWXztXvkdqjec=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=KnRTx18enF6xEmCTzM/DgvUGhhM4rrlMfLBN+b5zvCfaecShyKdi+wXIaZ0GDumek OYxRnY05jWnSypDXFCvxhEg+cpWXjEy7G1st7R8+ag/F9sDI5U/2uXDfQ5nlKLSAFu /mTJ6vOT3M9e6iy2angtG7fujrOFghls4EztR4mA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 380563858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 380563858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708675859; cv=none; b=FnAI4G0/JyY7ndmQtryHCiP+RoR57roFthpwCq4id/UKwnd6rQ0nWuGTQj9LjLKGdAOK07q8Jk2AwY6YyEPJ1du9ZOKZUkRPEnQA4eZ3UwYNfUOPn2wviS/CK+bSN8+0XV2JbsEiaBLaiYnHnHgeG5S7QlQ1ZxNBBnG01LcRIVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708675859; c=relaxed/simple; bh=oV70MmlYJLngXXbnNtf9cIEi+pUx8joH3BlfTrf6KVk=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Ti7vqhEDaVzD2+GFDqCDmmXCltZzGF360sRCewzUaGbwqtyu+AmjNHmLAsdP/Iztc93jVeMtCALptnY+6hhWPcz0WYsVJip3hQn/HxDIeGPSxqMn/A9SpR4nZGKZPUC6v63K6unRELq1fXZ+1p83JXjtozYgMH8KO46M0dCQBtw= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708675855; x=1709280655; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=08pz095bYqI/COM8TJ7YjKc6jWxJHUzYhtEwsaTnHd8=; b=qLAlCpcPEd5/TWyg3as6kwBFLpf2w6AuCULay5qEGpAs9ZrZDgsr5Qq981hxiFP+6L wGRlW8WS5ktUfn0sS46kGlJE+wA1KOHkHlmzxsU30AorVkGdtuSxrB/cB85CDvPyBU1X ezh9FxPHgBp8OkgxNV/SyyjO7bWnJ0g8JG1MPLbnMkN2d8IChsmkRW+nf1fgWt6yTJSD z627wF38jXgB1F+JRxbAj7w+rA5toP06MojPSAd6TOxcif2pzS+cT5NHE3iauFLiZhu2 wt3Gv8r1x9o7tCHy4SlpzwX8g2FIM75DPAZa2Ha+QO04J+5CV0ql5rUcAL+u7/i+XknC GBFA== X-Gm-Message-State: AOJu0Yyb9rnmiqnl09eXBhcP7+hvjL5hAS1UTfmsHxrtf5h5JyCw9MFf rcmXWry/q0OTdGNct8Y+Mt66Sxozumc9+/T0NI/vol/sRXzwLZ4R6ymOVlglb2cJdhap5U3hAjy LNarDQ644Tpf2jnF60MVkyEIfNNm1BGGfyoIbdg== X-Google-Smtp-Source: AGHT+IHqCw1DTFlDs3ETbHow84EjgQFCR1dkspBFYMImAJyZyDH+6L27rbbPIpAE8+DkoBrdX8XHHUj0hRXwkTVvAN4= X-Received: by 2002:ac2:4836:0:b0:512:b37f:a9ae with SMTP id 22-20020ac24836000000b00512b37fa9aemr716927lft.63.1708675854757; Fri, 23 Feb 2024 00:10:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 23 Feb 2024 09:10:28 +0100 Message-ID: Subject: Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add To: cygwin AT cygwin DOT com Cc: Corinna Vinschen X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Dan Shelton via Cygwin Reply-To: Dan Shelton Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" On Tue, 20 Feb 2024 at 21:45, Corinna Vinschen via Cygwin wrote: > > 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. I saw you did a couple of commits related to "getent group". Is any of these commits fixing the problem that a new Win32 local group created with "net localgroup mygrp1 /add" does not show up in the output of "getent group"? Dan -- Dan Shelton - Cluster Specialist Win/Lin/Bsd -- 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