Initializing a copy-only server
The following steps explain how to initialize a copy-only NIS server.
You see messages as the system services stop.
Press <Enter> at the Safe to Power Off
message.
Type <Ctrl>D to proceed with normal startup, (or give root password for system maintenance)
or
/etc/yp/ypinit
The functionality and the options for ypinit
and mkdev nis are identical.
You must specify whether this host is to be a master, slave server, copy-only server or NIS client. Please enter the server type:[mscCq]
Enter c to indicate that you are setting up a copy-only server.
If you want to stop the initialization, enter q.
Due to the restrictions of running NIS under the current security setting of this system, this server will accept, but not integrate sensitive maps received through NIS. Please refer to your Release and Installation Notes for further details.Hit return to continue.
NIS has been initialized previously on this machine Please verify that you would like to re-initialize NIS Do you wish to re-initialize NIS? (y/n/q)Enter y to continue.
The local host's domain name hasn't been set. Please set it. Please enter the domain name or q to quit:Enter the NIS domain name; you need an NIS domain name to retrieve data from an NIS database.
You will be asked:
Is "domainname" correct? [y/n/q]Enter y if correct. If you enter n, you will be asked to reenter the domain name. If you enter q, NIS initialization aborts.
You must specify a host name to act as the NIS master during map transfer [q to quit]:Enter the name of a master server with an up-to-date and stable database.
You see this prompt:
Installing the NIS database will require that you answer a few questions. Questions will all be asked at the beginning of the procedure.
Can we destroy the existing /etc/yp/<domainname> and its contents? [y/n/q: n]If you see this message, enter y to continue, which tells NIS to rebuild the previous NIS database with current information.
If you enter the default n or q, NIS initialization aborts, and you must manually remove the old NIS databases.
If the /etc/passwd.local file does not exist on the machine, you see the following message:
NIS stores local logins in /etc/passwd.local, which currently doesn't exist on this machine. The /etc/passwd.local file must be created before continuing.Enter y to continue. See ``About managing users'' for details on these files.Is it okay to copy /etc/passwd to /etc/passwd.local? [y/n/q: n]
If you enter the default n, you must manually create the /etc/passwd.local file, then start the initialization procedure again.
If the /etc/group.local file does not exist on your machine, you see:
NIS stores local groups in /etc/group.local, which currently doesn't exist on this machine. The /etc/group.local file must be created before continuing.Enter y to continue. See ``About managing users'' for details on these files.Is it okay to copy /etc/group to /etc/group.local? [y/n/q: n]
If you enter the default n, you must manually create the /etc/group.local file, then start the initialization procedure again.
The YP_MAP_X_LATE file contains the following: list of mapnamesIf the list is not correct, enter the default n. Edit YP_MAP_X_LATE to contain the correct entries, and start the initialization procedure again. Refer to the ypmapxlate(NF) manual page for more information.Is this correct? [y/n/q: n]
If the list is correct, enter y to continue.
You must specify whether ypbind is to be run with the secure option (-s), the ypset option (-ypset), allowing anyone to change your binding, or the ypsetme option (-ypsetme) which only allows requests with host-name's IP address to change host-name's binding, or with no options. Please see ypserv(NADM) for more information 1) ypbind -s 2) ypbind -ypset 3) ypbind -ypsetme 4) ypbind Please enter your choice (1-4,q):Enter the response appropriate to your security concerns.
There will be no further questions. The remainder of the procedure should take a few minutes to set up the NIS server.The NIS maps will be transferred from master_server when server_name goes to run level 2.
The backup directory /usr/lib/nisrt already existsEnter y to continue; NIS then backs up system passwd files. If you enter n or q, NIS installation aborts.Do you wish to continue with the SCO NIS Runtime System Initialization?
You then see:
Backing up system passwd files . . .Your copy-only server is now initialized.server_name's NIS data base has been set up without any errors.
The first time an NIS slave or copy-only server enters multiuser mode, its startup script calls ypxfr to transfer maps from the master server. Subsequent system startups do not transfer maps automatically.