From: Dan Shelton <dan.f.shelton@gmail.com>
To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Subject: Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add
Date: Fri, 23 Feb 2024 09:10:28 +0100 [thread overview]
Message-ID: <CAAvCNcBoECzpC-18gczd5BL1A4ScQyJP2GX5WPLYSWBk9dzDcQ@mail.gmail.com> (raw)
In-Reply-To: <ZdUPXS9CSpe7GeNw@calimero.vinschen.de>
On Tue, 20 Feb 2024 at 21:45, Corinna Vinschen via Cygwin
<cygwin@cygwin.com> wrote:
>
> On Feb 20 17:24, Dan Shelton via Cygwin wrote:
> > On Tue, 20 Feb 2024 at 10:57, Corinna Vinschen via Cygwin
> > <cygwin@cygwin.com> 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
next prev parent reply other threads:[~2024-02-23 8:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-20 4:13 Dan Shelton
2024-02-20 9:57 ` Corinna Vinschen
2024-02-20 16:24 ` Dan Shelton
2024-02-20 20:45 ` Corinna Vinschen
2024-02-23 8:10 ` Dan Shelton [this message]
2024-02-23 9:07 ` Corinna Vinschen
2024-02-27 3:08 ` Dan Shelton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAvCNcBoECzpC-18gczd5BL1A4ScQyJP2GX5WPLYSWBk9dzDcQ@mail.gmail.com \
--to=dan.f.shelton@gmail.com \
--cc=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).