*BSD News Article 52387


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!news.mindlink.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: NIS group bug
Date: 7 Oct 1995 19:03:54 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 41
Message-ID: <456iuq$o2t@sol.ctr.columbia.edu>
References: <44utor$a6b@news.uni-paderborn.de> <4504cb$rca@news.cs.tu-berlin.de>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se, Lars Hentschke
(nuggets@cs.tu-berlin.de) had the courage to say:

: First, i've tried to mail a possible solution to your EMail from
: the header of this article, but jkuku@uni-paderborn.de isnt known
: at your University.

Heh... check the signature at the end of his post. The e-mail addresses
listed there are valid.

: FreeBSD-2.0.5-R is a NIS-client and SUNOS4.3.1 is a NIS-Server and
: it runs without any problems here ...

: My first mistake that i took:
: dont use the last line syntax from SUNOS-NIS-client to setup a 
: FreeBSD-NIS-client!

: right syntax should be:
: /etc/group-last-line:
: +:*::
: /etc/master.passwd-last-line:
: +:::::::::

This is in fact the right way to do it, but as it happens, there
really was a bug. Sometimes, getgrent.c would fail to return all
the group membership for a user if that user was in both a local
/etc/group group _and_ and NIS group.

I committed a fix for this yesterday, and it's been pulled into
the 2.1 tree as well.

-Bill

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul            (212) 854-6020 | System Manager
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Møøse Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~