
30
|
Chapter 2: System and Network Administration Overview
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Servers
In NIS, there are two types of servers: master servers and slave servers. Master
servers are responsible for maintaining the maps and distributing them to the
slave servers. The files are then available locally to requesting processes.
Domains
An NIS domain is a group of hosts that use the same set of maps. The maps are
contained in a subdirectory of /var/yp having the same name as the domain. The
machines in a domain share password, host, and group file information. NIS
domain names are set with the domainname command.
NIS Maps
NIS stores information in database files called maps. Each map consists of a pair
of dbm database files, one containing a directory of keys (a bitmap of indices) and
the other containing data values. The non-ASCII structure of dbm files necessi-
tates using NIS tools such as yppush to move maps between machines.
The file /var/yp/YP_MAP_X_LATE contains a complete listing of active NIS maps,
as well as NIS aliases for NIS maps. All maps must be listed in this file in order for
NIS to serve them.
Map Manipulation Utilities
The following utilities are used to administer NIS maps:
makedbm
Make dbm files. Modify only ypserv’s map and any nondefault maps.
ypinit
Build and install NIS databases. Manipulate maps ...