Network Information Service (NIS) B.11.31.04 Administrator's Guide
next host to add: mammoth
next host to add: ocelot
next host to add:
The current list of NIS servers looks like this:
mammoth
ocelot
Is this correct? [y/n: y]
There will be no further questions. The ypinit procedure takes 5 to 10 minutes
to complete the configuration. The following output is displayed:
Building the ypservers database... ypservers build complete.
Running make in /var/yp: updated passwd updated group updated hosts
updated ipnodes updated networks updated rpc updated services updated
protocols updated netgroup updated aliases updated publickey updated
netid updated auto.master
mammoth has been set up as a master Network Information Service server
without any errors.
If there are running slave NIS servers, run yppush (1M) for any databases which have been
changed. If there are no running slaves, run ypinit on those hosts which are to be slave servers.
4. This step is optional if your are configuring the NIS master server for the first time.
Configure the NIS master server as an NIS client:
# /bin/rm -f /var/yp/binding/marketing/ypservers
# /usr/sbin/ypinit -c
To bind the NIS client to a particular NIS server, construct a list of NIS servers.
Add the names of NIS servers in order of preference, one server name on each
line. When you have no more names to add, press Ctrl+d or the Enter key on an
empty line. The system displays the list of NIS servers:
next host to add: mammoth
next host to add:
The current list of yp servers looks like this:
mammoth
Is this correct? [y/n: y] y
Type y or n to and press the Enter key to confirm the output.
NOTE: Ensure that the file /etc/hosts has appropriate entries for the NIS
servers added above.
5. Start the NIS master server:
#/sbin/init.d/nis.server start
6. Start the NIS client:
#/sbin/init.d/nis.client start
For detailed information on configuring an NIS Master Server, see “Enabling the
NIS Master Server” (page 29)
66 Sample NIS Session