X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=jkI1xy60W+1LAbPP90qDvXP7PwtH9ShjlJQPPtu1jLQN4dbjzmpjx A8RtoLs4+O4UgTe4Hmgr/2lygos5NM6hm/SokT4PWcOI+uqLpkyS9DuRciE4Q3PZ vX9C95pvRwhrfz1dc/1amRov0nFxP/aWGBPxsFDuGYWjU1huCiNLug= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=/hdAaklTWjfAsMtHi/V9tmLiaJY=; b=hJTP/cB/df1+i/eS8yJHBpeKCt+k bmrH2ajwNmHyQOPawmNj8SNHCNJne6TD0iSPySw2r9jhmlZ9L9q5zKN2X6OxMisB nw+QzTCZYC0cKWTg3Twzatf4NF5TNM+yNkKDLz/Sw1nQ48dt5kMsYXYEOj72oNis GBZp7DYeKRVpoxE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 18 Nov 2014 11:10:08 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] New package: getent-2.18.90-3 Message-ID: <20141118101008.GW3151@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <546AE849 DOT 2010002 AT t-online DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Idd68gPqKLz5+Ci0" Content-Disposition: inline In-Reply-To: <546AE849.2010002@t-online.de> User-Agent: Mutt/1.5.23 (2014-03-12) --Idd68gPqKLz5+Ci0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 18 07:33, Christian Franke wrote: > Corinna Vinschen wrote: > >Hi folks, > > > > > >I just uploaded getent-2.18.90-3. > > > >getent is a Glibc tool which allows to fetch host, passwd, group, > >protocol, and service information via a simple tool. > > > >The -3 version introduces the ability to ask for passwd and group > >entries via Windows username/groupname, using the "U-" prefix as > >in Cygwin's pw_gecos field: > > > > $ getent passwd U-BUILTIN\\Administrator > > Administrators:*:544:544:,S-1-5-32-544:: > > > >You can skip the domain name. In this case getent relies on the > >default account name resolution order of the underlying LookupAccountNam= e(*) > >function > > > > $ getent passwd U-Administrator > > Administrators:*:544:544:,S-1-5-32-544:: >=20 > Looks good. >=20 > What is the future way to map cygwin group names to windows group names? > Unlike struct passwd, the windows name does not appear in struct group. >=20 > "getent wingroup CYGGROUP" with some help of a new cygwin_internal functi= on? I have something in the loop but... why do you need this? Consider: The Cygwin accountname is either just a name, or it is domain+account, or it is machine+account. So, whatever it is, echo $cygwin_accountname | sed -e 's/+/\\/' will always return a valid Windows accountname. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Idd68gPqKLz5+Ci0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUaxsAAAoJEPU2Bp2uRE+gYOgQAKY+l1E0t2A9PEinHuts+qc+ djwzaBDzg/OLXevfQdAYCJ7CIN4QAuph0uafHC9ooXIYVZIYNbTTh9xmrC3FFgpL xdy+Mu3Ijffkc9mzS6BYT+/bVi6Y77l2SKSWK5Y2ShC+iKzNyS6B+a/JtWSd39sH rlB2MgvR2UvytjQzoLzcU1gfGpaQEKCPqOyFyqGVmRD2VakUTbcL9P9sttGJeo0B +Mp5OylZsuuQxc7n0vwoGFmZFxkIsytujIAeJMbMeLDOK6LVPSpymskpqlsl45Ok JNq/qDYagq/Wxi9czOM6FzsJjkBsitFViT7Wl/Ht9XR+C1Q0pAHVnpi+O3+aGsGC yxnGk3SQtE5LOgDU6B/FksBZwn3bcE8Lb+Uk5yCfuFdsxmVicRQ+e8YmCCLqsWXl hDm90W3tK7m7vGYgR0A7KUWc5krKjhfo4m/+mHqu6zg+KJRhoeYBFdMIpAympj1C A5FMaDsL47MuwP7J5lgxyUjuS1b7h4FKtBg/Ist/gbd8Zh9r+8sNmLq8d6DXrYEU 3C5FJmaSynv6WpP3FMRTcoqULo5jpus84B5Nk2JnV8lbvNWHYKIK4tgLD/oRhhhd bmsSIQcKD4AddtGVKKJ1nfdgY24TrjOuMxW9J6HVKPtn814Amnp42p43PUrFadYE /5FCg/pqTc2jjRz1k7K6 =pXb+ -----END PGP SIGNATURE----- --Idd68gPqKLz5+Ci0--