From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id 380563858D1E; Fri, 23 Feb 2024 08:10:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 380563858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 380563858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12f 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 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-512bd533be0so835840e87.0; Fri, 23 Feb 2024 00:10:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708675855; x=1709280655; darn=cygwin.com; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=08pz095bYqI/COM8TJ7YjKc6jWxJHUzYhtEwsaTnHd8=; b=lmkUoEoQxskIB5QMtX+6HLD2kcpkc+RloigOYutRpdlmPM7C+a5eehcbiaxvmhLlAs T6RaP5ms6F6cC+M6sLZg12WMPz86LLA6jIhNttSrihZ045XgC/VdASzKczBaIHSi9paq nMMIfTqTakF41hsXDdGSoI8I7WkGZ4MpwFOuvxKRm5AAu7Nhe/i4BiZD1Ss2f7pHJPJD g8aRkZt6np/EHH8IIX7qdsa85alqFM77eFtIo7XJ6d2TcDgprIdRPtffcGEcA5WgIL3j movwDisy7dlkljJRwTNUhrqpTtZVOB37PvzHHkCxwY22snBzd6iUKK0fmf/z59TdB7Pr SWeg== 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: From: Dan Shelton 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@cygwin.com Cc: Corinna Vinschen Content-Type: text/plain; charset="UTF-8" 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 List-Id: 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