This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Why mkgroup does not list group members?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 13 May 2013 20:06:39 +0200
- Subject: Re: Why mkgroup does not list group members?
- References: <5F8AAC04F9616747BC4CC0E803D5907D0AF7961F at MLBXv04 dot nih dot gov> <20130513175045 dot GJ8890 at calimero dot vinschen dot de> <5F8AAC04F9616747BC4CC0E803D5907D0AF7964F at MLBXv04 dot nih dot gov>
- Reply-to: cygwin at cygwin dot com
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