ypinit(1M)
Requires Optional NFS Services Software
NAME
ypinit − build and install Network Information Service databases
SYNOPSIS
/usr/etc/yp/ypinit -m [DOM=NIS_domain]
/usr/etc/yp/ypinit −s NIS_server_name [DOM=NIS_domain]
DESCRIPTION
The ypinit shell script creates Network Information Service (NIS) databases on either a master or slave NIS server. ypinit asks a few self-explanatory questions, and reports success or failure to the terminal. For an overview of Network Information Service, see ypfiles(4) and ypserv(1M).
Options
−m Create the local host as the master server to all maps (databases) provided in the NIS domain (see domainname(1)). All maps are built from scratch, either from information provided to ypinit at run-time, or from ASCII files in /etc. All such files should be complete and unabbreviated, unlike how they may exist on a NIS client machine (see passwd(4) for examples of abbreviated files).
See ypmake(1M) for more information on how NIS databases are built on the master server. Note that ypinit uses the NOPUSH=1 option when invoking ypmake(1M), so newly formed maps are not immediately copied to slave servers.
−s Create NIS databases on a slave server by copying the databases from an existing NIS server that serves the NIS domain.
The NIS_server_name argument should be the host name of either the master server for all the maps or a server on which the maps are current and stable.
DOM=NIS_domain Causes ypinit to construct maps for the specified NIS_domain. DOM defaults to the NIS domain shown by domainname(1).
DIAGNOSTICS
Exit code 0 is returned when no errors occur; otherwise, the exit code is 1.
AUTHOR
ypinit was developed by Sun Microsystems, Inc.
FILES
/etc/group
/etc/hosts
/etc/netgroup
/etc/networks
/etc/passwd
/etc/protocols
/etc/rpc
/etc/services
/etc/vhe_list
SEE ALSO
domainname(1), makedbm(1M), vhe_altlog(1M), vhe_mounter(1M), vhe_u_mnt(1M), ypmake(1M), yppush(1M), ypserv(1M), ypxfr(1M), group(4), hosts(4), netgroup(4), networks(4), passwd(4), protocols(4), rpc(4), services(4), vhe_list(4), ypfiles(4).
Hewlett-Packard Company — HP-UX Release 8.05: June 1991