X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1E7E385771E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1695362387;
	bh=nfAGeP1v57Lxr5TN4z4zU9qcE5t81NwpFituZ2gmKk4=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=Xvf2gDRWVchpDNE2d8vPP4wBXlr47oG0zyyWHztVO8i3B0mDC9fHBPNan8O/mPRsO
	 yznRb3TPZ9HeTJIRhdL+eRNtid/DviQ0W532BLVs9xIopwTANHpwaWsIcEYQSK+Q8G
	 AV3Enw3zg9A/7ux4fZ/2OMX/ReeI8aKQJDTa3d2g=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 548C23858C53
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1695362347; x=1695967147;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Ra3MMJrIFTjimEiLwwIcUUH7XMA1DtZ4CepUArLAOMo=;
 b=T2wB+4wL/j+dYI1GXHF/hJu+pLP1/rkEg5T0Zcx1mUr7tufI9+T6AkhOEykjq9QrhM
 sWpb1JRNp0TF/4QX6GdxQAbXxkv6EQzmz0qJ07HVKJYCyVCoV2H3X7Ljzv5l38d0TTXQ
 fJBU/eq/yKrgXZgYnGvkj+EVFqph5L4b9bi1luoJZGk6HzYr6/g9Lx8TMGN+/deWYcCc
 F8MOEoDkYJ6o4D6lOayefAgIPETZ47nhPhveaFXAdWh6Z+kmcUa70Bq1h7s64PVzZcGH
 bfCbkZnrjcOfXwkCCIX4xeCXp3ilovsYIoo+xwBLB3D8pP+FUPPtgPuXX4uZKXQEe1G7
 +a1A==
X-Gm-Message-State: AOJu0YzoW4zjAa8gfjFuugvgk9LvgUCvUlSeJfoUjWwLKi0NwAp6Nf1s
 zexu08xPNGmil8rBBnaiWXZ4UoofKm3ShLqWBngPxgo8
X-Google-Smtp-Source: AGHT+IFPS+Azu4v1wKR0G1OtR5Ka9QLZaZp6aTUQEg/51SfOl6D+BXJrIlUSkE4q27s0QswtoQGHeApXZr4GQObt7no=
X-Received: by 2002:a05:6870:330f:b0:1d0:c53c:19e5 with SMTP id
 x15-20020a056870330f00b001d0c53c19e5mr8597523oae.39.1695362347700; Thu, 21
 Sep 2023 22:59:07 -0700 (PDT)
MIME-Version: 1.0
Date: Fri, 22 Sep 2023 07:58:56 +0200
Message-ID: <CANH4o6Myw2==vuhFQ=5ux3vj991u3-qEofQpbTOr3CYUJBf-Gw@mail.gmail.com>
Subject: Shell API to get Windows SID from Cygwin name?
To: cygwin@cygwin.com
X-Spam-Status: No, score=-0.0 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 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@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Martin Wege via Cygwin <cygwin@cygwin.com>
Reply-To: Martin Wege <martin.l.wege@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

Hello,

Does Cygwin have a shell (e.g. bash) API to lookup the Windows SID for
a given Cygwin user or group name?

/usr/bin/getent usersid thisisausername

does not work

Thanks,
Martin

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