ypinit(8) CLIX ypinit(8)
NAME
ypinit - Builds and installs a Network Information Service (NIS) database
SYNOPSIS
/etc/yp/ypinit -m
/etc/yp/ypinit -s master_name
/etc/yp/ypinit -c master_name
FLAGS
-m Sets up the local host as the NIS master.
-s master_name Sets up master_name as a slave database.
-c master_name Sets up master_name as a slave copier database.
DESCRIPTION
The ypinit command sets up a Network Information Service (NIS) database on
an NIS server. The ypinit command can be used to set up a master or a
slave server. After the user answers the prompts, success or failure is
reported to the terminal.
The ypinit command sets up a master server using the simple model where
that server is master to all maps in the database. This is the way to
bootstrap the NIS system; later the association of maps to masters can be
changed. All databases are built from scratch, either from information
available to the program at run time, or from the ASCII database files in
/etc. Further files may be handled by NIS as required by the local
environment. All such 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 an NIS server (either the master server for all the maps or a
server on which the database is up to date and stable).
An NIS database on a slave copier is set up by copying an existing
database from a running server. The master_name argument should be the
hostname of an NIS server, either the master server for all maps, or a
server on which the database is up-to-date and stable. The only
difference between a slave server and a slave copier is that the slave
copier does not respond to NIS requests from the network.
In all three cases, ypinit modifies the NIS startup scripts to enable them
to automatically startup the NIS daemons. It also ensures they get
started with the correct arguments.
2/94 - Intergraph Corporation 1
ypinit(8) CLIX ypinit(8)
Refer to ypfiles(4) and ypserv(8) for an overview of the NIS master.
EXAMPLES
1. To define the local host as the NIS master server, enter:
/etc/yp/ypinit -m
2. To set up a slave database and get map information from server sys3,
enter:
/etc/yp/ypinit -s sys3
3. To set up a slave copier database and get map information from server
sys4, enter:
/etc/yp/ypinit -c sys4
FILES
/etc/passwd
Database of login and password information.
/etc/passwd.local
Database of password entries that override or supplement entries in
the NIS database.
/etc/passwd.yp
NIS server database of password entries from which the NIS password
map is initialized.
/etc/group
Database of group definitions.
/etc/group.local
Database of group entries that override or supplement entries in an
NIS database.
/etc/group.yp
NIS server database of group entries from which the NIS group map
is initialized.
NOTES
You must be in superuser mode to execute this command.
DIAGNOSTICS
2 Intergraph Corporation - 2/94
ypinit(8) CLIX ypinit(8)
Can't get local host's name. Please check your path.
The hostname command failed, or could not be located or executed.
Can't get local host's domainname. Please check your path.
The domainname command failed, or could not be located or executed.
EXIT VALUES
The ypinit command exits with a value of 0 if successful. If
unsuccessful, it exits with a value of 1.
RELATED INFORMATION
Commands: domainname(8), hostname(8), makedbm(8), map2ascii(8),
yppush(8), ypmake(8), ypserv(8), ypxfr(8)
Files: ypfiles(4)
2/94 - Intergraph Corporation 3