*BSD News Article 76499


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!newsfeed.internetmci.com!news.msfc.nasa.gov!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/YP documentation?
Date: 20 Aug 1996 15:50:04 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 39
Message-ID: <4vcmrc$ifn@sol.ctr.columbia.edu>
References: <4vb2cm$krs@linux.sjs.com>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]

Daring to challenge the will of the almighty Leviam00se, root
(root@linux.sjs.com) had the courage to say:

: 	I've been trying to setup a FreeBSD system to use a YP served password
: database without any luck. I can do a ypcat and see the data fine, the problem 
: is when I add the "+:" yp redirect in the password file, vipw complains about 
: it and won't generate a new local password database.
: 	Can anyone tell me how to setup a FreeBSD system to use the NIS 
: database? Is there any documentation on how to build an NIS server on a 
: FreeBSD system?

For the umpity-umpth time: read the passwd(5) man page. It explains
everything you should do (and shouldn't do) to use NIS passwd maps.

There's a reason vipw complains about "+:" : it _isn't_ a valid entry
and you shouldn't be trying to put it there. What you _should_ be using
is: +::::::::: . That is is a valid entry and vipw will happily accept it.

As for the server, read the ypserv(8) man page and the yp(4) man page.
These should help. Generating the maps for ypserv is usually as simple
as:

# domainname my.nis.domain
# cd /var/yp
# echo "servername" > ypservers
# make

To start the server automatically at boot time, see /etc/sysconfig.

-Bill

--
=============================================================================
-Bill Paul            (212) 854-6020 | System Manager, Master of Unix-Fu
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
=============================================================================
 "If you're ever in trouble, go to the CTR. Ask for Bill. He will help you."
=============================================================================