delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/21/17:50:57

X-Spam-Check-By: sourceware.org
Message-ID: <001a01c73dae$7dec4af0$6152a8c0@ziesemermark>
From: "Mark A. Ziesemer" <mark_z AT charter DOT net>
To: <cygwin AT cygwin DOT com>
Subject: "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?
Date: Sun, 21 Jan 2007 16:50:04 -0600
MIME-Version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-Chzlrs: 0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019