*BSD News Article 51007


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!agis!gatech!howland.reston.ans.net!math.ohio-state.edu!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 - One more time ...
Date: 16 Sep 1995 01:57:50 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 53
Distribution: world
Message-ID: <43dauv$2j1@sol.ctr.columbia.edu>
References: <HAFNER.95Sep14190910@suncog2.forwiss.tu-muenchen.de>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se,
Walter 'madhouse' Hafner (hafner@suncog2.forwiss.tu-muenchen.de)
had the courage to say:

: Hello!

: I just installed a FreeBSD 2.05R System and wanted to run it as a NIS
: client with a SunOS 4.1.2 Server (SparcServer 690MP).

: - According to Fred Gilhams posting a couple of days ago I installed the
: DES package (without the kerberos stuff) along with the general system
: setup.
: - After doing all the sysinstall provided installation I added
: 'nisclient="-s"' in /etc/sysconfig.
: - According to Bill Pauls postings I added '+:::::::::' to
: /etc/master.passwd, rebuilt the databases and added '+:::' to
: /etc/group.
: - I uncommented 'nis' in /etc/host.conf and rebooted the
: machine.

This last step is not stricly necessary. If you're already using DNS
for hostname lookups, it's not required that you use NIS too.  (Though
you can if you want, of course.)

: Result: Usernames imported from NIS are known, i.e. the server is asked,
: BUT ... 'login' dumps core with seg.fault. (cron too, btw.). No chance
: to log in.

Check your group database maps for formatting errors. Check them
_VERY_ carefully. The getgrent(3) functions in 2.0.5 have a bug than
can result in NULL pointer dereferences if there are formatting
errors in the NIS group map. Check for things like entries with
too many colons, entries with too few colons, entries that don't
have all the commas between group members in the right places,
or, worst of all, blank lines in the original /etc/group file.
Check that all lines end with a carriage return too.

The bug has been patched in -current and -STABLE.

: What am I doing wrong? Any suggestions?

Yes: check your maps more carefully for mistakes.

-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!" ~~~~~~~