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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=L6PfI7U8HTqJgcxPL1exdjFwFu3zeWIRrGu9fP2h5uM gJGHDtt6AoT8qoMgoX69qZjqbKrPisNMTxKvWr/HSCsPv+X1iZY0eW3avzjwgkEq fxcJQKjdmKs/s1Ay+aCzvLsnuHcTHewftu0gqX3LlMd9ICQjfSRdb2jwossoI60U = 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=55synchTpiXUkTErJIDabcMXk2Y=; b=q9zMBjPiuene/8nXI b71197k91QdQyYFHQY9fhgknTGhLGc8iwib9j+r4RPsaLjOmlTiZeqF3zORQgslN EWDHjaZo8A6rJBiffAhqOz0tEhNJGZqIMPh2gMJglpSuiq+K4VMuQCRJfPwpt/8w jJ7eVlJ5veiTUkJOqeiNQJc/44= 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=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout03.t-online.de Message-ID: <546AE849.2010002@t-online.de> Date: Tue, 18 Nov 2014 07:33:45 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] New package: getent-2.18.90-3 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 LookupAccountName(*) > function > > $ getent passwd U-Administrator > Administrators:*:544:544:,S-1-5-32-544:: Looks good. 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. "getent wingroup CYGGROUP" with some help of a new cygwin_internal function? Christian -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple