delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/03/11/11:17:20

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 62BFHK2x3374390
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 62BFHK2x3374390
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=FgBoJMcs
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DA6D4BB58DA
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1773242239;
bh=rPdrULv7gbM82ikYZenm6odreZV1vLoSq8ukeRmWczs=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=FgBoJMcs4uistGB2/rftIoXwDlzY932JuT1NELwPS+RlLG+i+0gqZZTAHy96oOzVt
TFScjzrJo6hdCbawsC1JVqmfulTMOJwbl92wAXPI8lpo5nMxc5rpWweBRe42eUte1g
vkC5wYMosVmHNdm2I0iDGCX7DSsJPiyyP08wRzVE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB9A94BB5886
Date: Wed, 11 Mar 2026 16:16:32 +0100
To: cygwin AT cygwin DOT com
Subject: Re: HYPER-V VMs: Cygwin /bin/getent group 'Virtual Machines' cannot
find the group
Message-ID: <abGHUBD2oHK6bo5K@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CANH4o6P07DG5XcSooXkAE5ShWkkz1hVBSMn6k2iaLycSEEA_0A AT mail DOT gmail DOT com>
<CA+1jF5oHw71rv-OH893R+DdNpnRUQAtp=WS_fXvxe1WBsC0H6w AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CA+1jF5oHw71rv-OH893R+DdNpnRUQAtp=WS_fXvxe1WBsC0H6w@mail.gmail.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 62BFHK2x3374390

On Mar  3 09:26, Aurélien Couderc via Cygwin wrote:
> On Mon, Mar 2, 2026 at 8:19 PM Martin Wege via Cygwin <cygwin AT cygwin DOT com> wrote:
> >
> > Hello,
> >
> > we use HYPER-V virtual machines on Windows 10 and Windows 11. It seems
> > they use a "special" kind of group called 'Virtual Machines', which
> > Cygwin (3.6.5) /bin/getent cannot lookup:
> >
> > getent group 'Virtual Machines'
> > <nothing>
> >
> > Does anyone have ideas or clues how to get getent group to work with
> > this kind of Windows group?
> >
> > We want the Cygwin gid for that group, and use Cygwin commands to work
> > with those files...
> 
> Déjà vu
> 
> 1. Please read https://cygwin.com/pipermail/cygwin/2025-July/258505.html
> 
> 2. Try this:
> getent group "NT VIRTUAL MACHINE+Virtual Machines"
> For me, with default (empty, except comments) /etc/nsswitch.conf, it
> does not work. Which I consider a bug.

It's not a bug, it's a feature.  Truly so.  Keep in mind that there's
no easy translation from arbitrary SIDs to 32 bit uid/gid values and
vice versa.  So every time, Microsoft adds YA arbitrary SID not following
the already implemented and supported schemes, the bijective mapping
has to be implemented manually.

Done in the main branch.


Corinna

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019