NFS Services Administrator's Guide
Configuring and Administering NIS+
Setting Up the NIS+ Namespace
Chapter 5214
To Set Up the Root Master Server
Before you perform this task, make sure no one is using the host that
will be the root master server. The nisserver script copies the
/etc/nsswitch.nisplus file to /etc/nsswitch.conf. This may render
the host unusable until the NIS+ tables are populated and NIS+ is
operational.
1. Log in as root to the host that will be the root master server.
2. Issue the following command to set the default domain name:
/usr/bin/domainname default_domain
The domain name must have at least two components, for example,
Wiz.Com. Do not type a period at the end of the domain name.
3. Set the PATH variable to include /usr/lib/nis. If you are running
the C shell, type the following command:
setenv PATH $PATH:/usr/lib/nis
If you are running the Bourne or Korn shell, type the following
commands:
PATH=$PATH:/usr/lib/nis
export PATH
4. Issue the following command to set up the root master server:
nisserver -r
If you want the server to run in NIS compatibility mode so that it can
serve NIS clients, add the -Y option. See “NIS Compatibility Mode”
on page 210 for more information.
nisserver -r -Y
The nisserver script asks you if the information it has is correct.
You can change it by typing n. The script then allows you to change
each piece of information. To make a change, just type the correct
information after the incorrect information and press [Return]. You
cannot change the security level.
When the nisserver script asks you for a password, type the root
password. The nisserver script will use the root password to create
credentials for the local host in the cred table.
5. To verify that the nisserver script created the root domain
successfully, issue the following command: