X-Recipient: archive-cygwin@delorie.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:message-id:in-reply-to:references:date:subject
	:from:to:mime-version:content-type:content-transfer-encoding; q=
	dns; s=default; b=sA0yxuNGb09AGnjBbrGUrJGqrPd3ibJolHdeKgSm0OVLC2
	5BTWJda7VQorr1AOUOwwnE+ZOiuC5IrWApF94j0Qbf614X31kKGH6EfNkhWR8ryo
	CmmQGv0tKkicUjjJ9/IlW1y2mFaLC4WPRn73CGIe3dM6RhG0xFxiePf8nHvLo=
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:message-id:in-reply-to:references:date:subject
	:from:to:mime-version:content-type:content-transfer-encoding; s=
	default; bh=/q+lQ+Hpi/jbIUhrLa/pWktag/o=; b=MK5q2iAcfyOwpcuNA/jt
	kPKMzZgkaHFXYPPyGQV6SKw/4kJqL5iNSc7ywfgGECZBShKNEXpOZAcdlvP/bqWe
	JFaybu4tQHc2HgfA1titSy3qbYysbnqGL0G6OpQBfEZznz26kzuGMYxZl6Nw8BFA
	pYUQ7WUXAU3tMQ1N1MTG0IM=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: lb2-smtp-cloud6.xs4all.net
Message-ID: <2d6be486ce640e0db82ca4f0035179ab.squirrel@webmail.xs4all.nl>
In-Reply-To: <20150107172531.GA4190@calimero.vinschen.de>
References: <1418434328946-113637.post@n5.nabble.com>    <548C3162.6040500@cornell.edu> <5499711C.6060500@nokia.com>    <54998980.4080801@cornell.edu> <54A10DBF.6010507@nokia.com>    <54A1517B.4080802@cornell.edu> <54A1600F.7060700@nokia.com>    <54A1819B.9090204@cornell.edu>    <20150107172531.GA4190@calimero.vinschen.de>
Date: Thu, 8 Jan 2015 02:38:05 +0100
Subject: Re: SSHd configuration problems (System error 1376)
From: "Houder" <houder@xs4all.nl>
To: cygwin@cygwin.com
User-Agent: SquirrelMail/1.4.18
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

Corinna wrote:

> The aforementioned message is a result of a change in how the function
> underlying `id' works.
[snip]

> The old getgroups iterated through the groups from /etc/groups, and then
> checked for each group if its SID is available in the user's token.
>
> This behaviour only makes sense if there is a self-contained list of
> groups in memory.  But the new code doesn't read all of /etc/group, or,
> worse, all groups from the Windows account DB.  So the new, more logical
> behaviour is to iterate over the groups in the user's token and then
> checking for (or generating) a group entry for the SID.  So, in contrast
> to the old code, the new code only generates a single group entry per
> SID.

... to iterate over the groups in the user's token ...

But, by design, groups NOT present in the group file will NOT be reported
by id, in case the nsswitch.conf file specififies:

# only show me the gid's I am interested in (i.e. those in the group file)
group: files

Correct?

Henri


--
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

