X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0482E3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1709003363; bh=/jceyrh9T1NXXg+apdnzQAAN8KRP6C0KlBS78cNWvS8=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=B30H7e7Eh74B08QY6IZLuYONcDrj/7SO6MuelwZD5cH+g6SQIB9FlU6RDb+bUk3Mo WftuTb+mVk2rd5J0fBDPHhDdjIRdrVgww+/FuowbirqF2TyVEazl07C1XbetrQxO4W p7De384ty7u/B4YtNTEsixH1Vs6ySbWmuPl46ey4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C71183858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C71183858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709003340; cv=none; b=Htu0hwonFdqntt0sTfw378ILJ5ruqCq9QhUk54FdjFNhsi8+T8cK/rjfsiLK+NvqXHOnfhmBc9U1Km1FQ3iB6UnWtlb+4lHP8NeaVncN13C6tOVxM7LdslvLa6/6cyX2xgyi+TKkIqpxtsDWsXjvyUnX5gt9hiMsWKmScxsH9+0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709003340; c=relaxed/simple; bh=wevWOBEx42wInCnvwwdoOOZF5EX3of0LIgT1+O/NjKI=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=JxnHTBzbNEA5jFx3IAS1cmtnfNVCn1IRroqgUX6+WhK0EfvpWLbNzbh5zGFG4ocisPuBFpprRwBZtL4HtOHEY+/dhDafJQtOjM7vxcKd73IJxpjnqiI3P6amFfVzFksZlkIb1A483RZ+ErEyFH19pMk03VVJ61tXnZenJBUB8Q8= 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=1709003337; x=1709608137; h=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=hBCVarfjzusEmBIQpZ1FaujciEvK+v66jdLKS7+yRw8=; b=J/NzHHkgDibKMLGYLLy8bbJsRmi4e7fNtaN/oLFi6mgzOZqxsu6/doQmEI+PcSBac+ Y/YF4wd3L5Q9uGVgUfmuNZjfTsJubNzxhC9LOKUmenEzeq5urw0e7lr7zBen63rUVBIJ xcImm1f/yk5bFK12wMnM3XMCkiAgo0Rnd5cYENVSbfdT6gzaeTutA2DULT7ww5KW94FW oAlwUzMfFg4gkgbJqqfCoaeBaa14z8aOum+RsFv4nRegZo3zAEZHLPk7VP/nlqprXqd9 /GRMvqy5UQQMP7H2Yy+v0Kck48eEEGdZmFRN/x2oIrV3/OkX9rgAuqYzifN9+BCwIPse niTw== X-Gm-Message-State: AOJu0YxlGVyS+Rg5IFC5XgCpTtfAtaa9um0ssirfjDn5c7iaiVLwj2L8 GMObX8RVN1br0O+fX8DIjo0g9So6yLSDbz7Ya3WEONJLGIXcBJW7o/mSIIAfzycV09PX6t8vpTL pQTnyxRZt0ctRRhlSwPcWyquHA+t5i34Anbs= X-Google-Smtp-Source: AGHT+IHVHY8mlPwijjcn/j3dG01e+dGfd+hQMPYsINSULOVrMFIUsrIDJFvh23wly6giALyMSVnuqLE0mmmCuDLF9Z8= X-Received: by 2002:a2e:6a06:0:b0:2d2:403f:612a with SMTP id f6-20020a2e6a06000000b002d2403f612amr5227129ljc.13.1709003336612; Mon, 26 Feb 2024 19:08:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 27 Feb 2024 04:08: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 X-Spam-Status: No, score=0.3 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. That worked on the customers machine: getent group | fgrep 'S-1-5-21-' Kein:S-1-5-21-3286904461-661230000-4220857270-513:197121: mygrp1:S-1-5-21-3286904461-661230000-4220857270-1003:197611: mygrp2:S-1-5-21-3286904461-661230000-4220857270-1004:197612: mygrp3:S-1-5-21-3286904461-661230000-4220857270-1005:197613: __vmware__:S-1-5-21-3286904461-661230000-4220857270-1002:197610: Kein:S-1-5-21-3286904461-661230000-4220857270-513:197121: but "db_enum: cache builtin local" in nsswitch.conf works too. "cache builtin" is the default, so just add "local" Why is "local" NOT enabled by default? > 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. It would suffice to turn change the default to "db_enum: cache builtin local" for 3.5.1 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