ypinit(1M) ypinit(1M)
ypinit - build and install NIS database
/var/yp/ypinit -m [-y] [-d domainname] [-f source_dir] [-l slave[,slave]]
/var/yp/ypinit -s master_name [-y] [-d domainname]
/var/yp/ypinit -c [-d domainname]
ypinit sets up network information service (NIS) on a system. It can be
used to set up a client or a master or slave server. You must be the
superuser to run it. It asks a few self-explanatory questions, and
reports success or failure to the terminal.
It 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. The location may be overridden using the -f argument. These files
are listed below under FILES. 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 the NIS master server.
Refer to ypfiles(4) and ypserv(1M) for an overview of NIS.
-c Sets up a client.
-m Indicates that the local host is to be the NIS master.
-s master
Set up a slave database, copying the database files from master.
-d domain
Setup database for the given domain. If not given it uses the
currently set domainname.
-f source_dir
Allows the location of the source files to be overridden. This is
only for ypinit, to permanently set this value edit the file
/etc/options/ypmaster.options. See ypmake(1) for details.
-l slave1,slave2,...
Allows the list of slave servers to be given on the command line as
a comma separated list of names. If not given on the command line
you will be prompted for this list.
Page 1
ypinit(1M) ypinit(1M)
-y Remove any previously existing database. If not given you will be
prompted if a database directory already exists.
/etc/aliases
/etc/bootparams
/etc/capability
/etc/clearance
/etc/ethers
/etc/group
/etc/hosts
/etc/mac
/etc/netgroup
/etc/networks
/etc/passwd
/etc/protocols
/etc/rpc
/etc/services
makemdbm(1M), ypmake(1M), yppush(1M), ypserv(1M), ypxfr(1M), ypfiles(4).
PPPPaaaaggggeeee 2222 [ Back ]
|