delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/07/20:38:30

X-Recipient: archive-cygwin AT delorie DOT 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 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
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 DOT post AT n5 DOT nabble DOT com> <548C3162 DOT 6040500 AT cornell DOT edu> <5499711C DOT 6060500 AT nokia DOT com> <54998980 DOT 4080801 AT cornell DOT edu> <54A10DBF DOT 6010507 AT nokia DOT com> <54A1517B DOT 4080802 AT cornell DOT edu> <54A1600F DOT 7060700 AT nokia DOT com> <54A1819B DOT 9090204 AT cornell DOT edu> <20150107172531 DOT GA4190 AT calimero DOT vinschen DOT de>
Date: Thu, 8 Jan 2015 02:38:05 +0100
Subject: Re: SSHd configuration problems (System error 1376)
From: "Houder" <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
User-Agent: SquirrelMail/1.4.18
MIME-Version: 1.0
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

- Raw text -


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