This is the mail archive of the
mailing list for the Cygwin project.
"id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?
- From: "Mark A. Ziesemer" <mark_z at charter dot net>
- To: <cygwin at cygwin dot com>
- Date: Sun, 21 Jan 2007 16:50:04 -0600
- Subject: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?
Cygwin doesn't appear to properly support returning multiple groups for a
specific user, other than the current user (and only when not specifying the
current user's username.)
When "id" is called without a username, it calls the getgroups(...) function
which appears to work as expected. However, when a specific username is
passed, even the username of the current user, getugroups(...) is called,
and does _not_ appear to work as expected.
This makes it difficult to properly configure and manage security, for
example, with the OpenSSH daemon.
This is easily reproducible, and is not specific to any particular version
I've posted about this before, without any results.
I've setup a public wiki with all the details where I hope we can
collaborate to finally solve this issue:
http://cygwin-getugroups.pbwiki.com/ Included there are the requested
cygcheck and related files.
Mark A. Ziesemer
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html