Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
Setting up FreeBSD as an NIS client --- by Eric Anderson23 December 2000
So what if you want to use
your FreeBSD box as a client on a network that is running NIS? Simple! This
should walk you through most of the setup. Of course, have FreeBSD 3.3 or greater
installed with your network settings already working before doing this.
Setting up the client
We are going to assume a few things about your setup. Your NIS
domain is domain.com, and your NIS servers are nisserver1 (master) and nisserver2 (slave).
Edit your /etc/rc.conf and add the following lines:
Next, edit your /etc/host.conf file, and make sure you
uncomment nis, so it looks something like:
# $FreeBSD: src/etc/host.conf,v 188.8.131.52 1999/08/29 14:18:44 peter Exp $
# First try the /etc/hosts file
# Now try the nameserver next.
# If you have YP/NIS configured, uncomment the next line
Editing the hosts file
Edit your /etc/hosts file and make sure you have the local
machine, and both NIS servers in the list. Add a +:: to the end (last line). It
should look something like this (you may not have to do this if you are a name server):
# $FreeBSD: src/etc/hosts,v 184.108.40.206 1999/08/29 14:18:44 peter Exp $
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution
127.0.0.1 localhost.yourdomain.com localhost
10.1.1.222 fridge.yourdomain.com fridge
10.1.1.76 nisserver1.yourdomain.com nisserver1
10.1.1.31 nisserver2.yourdomain.com nisserver2
Editing the master.passwd file
Now do a vipw master.passwd, and add a +::::::::: to the end
(last line) of the file. It should look something like this: