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=XycNr+fMVCCf7d1IAKmVK0pI3+pDHMVkSj1CcZllTlBjXdq2+kEqq BZ1LY/Yz1y4F/29S/3p8US+Ul8uJHA6ztpD4xA4bSqk90gO0d5wOPLmqRA3IpenI RQb+ObGLjxbpG8VkGyy0Zkji/FoZoe9b4b5rn5RBuLOepC08dcATJk= 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=SkMK5WyEZHgR+r2QwMS6LGWT1X8=; b=Xcm04EubR+y7Ual1LvMzSo8Vub0Z a+UaHDt2iCWDtojvC2iXzTOGb7Cl7QfHcB2BtDcySRMd76VwEuw/rrgKrRaMQqNI FtssCQs3O3ojRv/L/bTG83jdGDE7X7h4pq1dmB1Klp3hm2q+S8r7CsY3+zuO/I71 EIc4yEp2zzozo2g= 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 X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,TW_MK autolearn=ham version=3.3.1 Date: Mon, 13 May 2013 20:06:39 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Why mkgroup does not list group members? Message-ID: <20130513180639.GM8890@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5F8AAC04F9616747BC4CC0E803D5907D0AF7961F AT MLBXv04 DOT nih DOT gov> <20130513175045 DOT GJ8890 AT calimero DOT vinschen DOT de> <5F8AAC04F9616747BC4CC0E803D5907D0AF7964F AT MLBXv04 DOT nih DOT gov> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D0AF7964F@MLBXv04.nih.gov> User-Agent: Mutt/1.5.21 (2010-09-15) On May 13 17:53, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > > so is extra work for no gain. > > But what if I need to see who's in a particular group? > > Then when I use getgrgid() / getgrnam() (or equivalent), I get an empty list. In that case, your expectations of the getgrXXX functions are wrong. The gr_mem field never returned all users belonging to a group. Historically it only contains users for which this group is a supplementary group, not a primary group. It also doesn't make sense to add all usernames to the gr_mem field of the "Users" group in companies with thousands of employees, given that all users are member of the group. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- 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