build and install NIS database
/usr/sbin/ypinit -s master-name
The ypinit command sets up
the Network Information Service (NIS)
on a server or a client.
It can also be used to remove NIS configuration from a system.
ypinit can be used to set up an NIS master server,
an NIS slave server, or an NIS client.
To run ypinit, you must be the NIS administrator root
with the appropriate privileges.
It asks a few self-explanatory questions,
and reports success or failure to the terminal.
ypinit sets up a master server
using the simple model in which that server
is master to all maps in the data base.
This is the way to bootstrap the NIS system;
later if you want you can change the association of maps to masters.
All databases are built from scratch,
either from information available to the program at runtime,
or from the ASCII data base files in /etc.
These files should be in their ``traditional'' form,
rather than the abbreviated form used on client machines.
An NIS database on a slave server is set up by copying
an existing database from a running server.
The master-name argument should be the hostname of a
NIS server (either the master server for all the maps,
or a server on which the data base is up-to-date and stable).
If you want to modify the list of maps that a slave slaver
will initially request from the master server,
edit the file /var/yp/YPMAPS on the slave
server before running ypinit.
To set up a client,
ypinit prompts for a list of NIS
servers to bind the client to,
this list should be ordered from closest to farthest server.
for an overview of the NIS service.
ypinit takes the following options:
Set up a client system.
Indicate that the local host is to be the NIS master.
Remove NIS configuration from a system.
This stops the NIS daemons, deletes /etc/inet/nis.conf, unsets
the NIS domain name, removes any
tcpip_nis.so entries from /etc/netconfig,
and deletes the symbolic links
/usr/lib/ns.so and /usr/lib/ns.so.1.
It does not undo any changes that the administrator has made
to files such as /etc/passwd or /etc/group.
Set up a slave database.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004