delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/08/05:13:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Mon, 8 Apr 2002 11:12:09 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Help me understand few things
Message-ID: <20020408111209.D24639@cygbert.vinschen.de>
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <657B20E93E93D4118F9700D0B73CE3EA0D39723A AT goofy DOT epylon DOT lan> <20020408102857 DOT B24639 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20020408102857.B24639@cygbert.vinschen.de>
User-Agent: Mutt/1.3.22.1i

On Mon, Apr 08, 2002 at 10:28:57AM +0200, Corinna Vinschen wrote:
> On Fri, Apr 05, 2002 at 10:00:02PM -0800, Gupta, Sanjay wrote:
> > Q3: When logged in via ssh, if I run
> > $ id -Gn
> > None Everyone Guests Power Users Users ORA_DBA
> > It displays all the Primary and Secondary Groups belong to the current user.
> > My current user is Guest.
> > but when I specify
> > $ id -Gn Guest
> > None
> 
> Yes, you mentioned it already twice this weekend.  Could be a bug.
> A quick strace run didn't help, though.

...but a look into the sources did.  If you call `id' w/o a
name, id calls getgroups() which in Cygwin returns the group
list from the process token.  If you call `id' with a name,
id assumes that you are not the sme person as the one you're
asking for information about.  In that case it can't call
getgroups() but searches /etc/passwd and /etc/group by itself.
And /etc/group doesn't contain any supplementary groups in
your case.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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