public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* "id -Gn" w/ username doesn't return all associated groups.  Issue with getgrent()?
@ 2007-01-21 22:50 Mark A. Ziesemer
  2007-01-22  9:34 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Mark A. Ziesemer @ 2007-01-21 22:50 UTC (permalink / raw)
  To: cygwin

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
of Cygwin.

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.

Thanks!

--
Mark A. Ziesemer
www.ziesemer.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-01-24  1:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-21 22:50 "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()? Mark A. Ziesemer
2007-01-22  9:34 ` Corinna Vinschen
2007-01-22 13:03   ` Eric Blake
2007-01-22 13:29     ` Corinna Vinschen
2007-01-22 15:23       ` Mark A. Ziesemer
2007-01-22 15:40         ` "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()? Corinna Vinschen
2007-01-23  1:15           ` Mark A. Ziesemer
2007-01-23  3:21             ` Eric Blake
2007-01-23 23:35               ` Mark A. Ziesemer
2007-01-24  1:24                 ` dmccunney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).