NFS Services Administrator's Guide
Configuring and Administering NIS
Configuring and Administering an NIS Master Server
Chapter 4 169
To Remove a Slave Server from Your NIS Domain
1. Log in as root to the NIS master server.
2. Issue the following commands to create an editable ASCII text file
from the ypservers map:
cd /var/yp/domainname
/usr/sbin/makedbm -u ypservers > tempfile
3. Use a text editor to remove the name of the slave server from the
ASCII file, tempfile.
4. Issue the following command to regenerate the ypservers map from
the ASCII file:
/usr/sbin/makedbm tempfile ypservers
5. Log in as root to the slave server.
6. Remove all the map files from the map directory, and remove the
map directory. The directory is called /var/yp/domainname, where
domainname is the name of your NIS domain. For example, if you
were removing a slave server from the Finance domain, you would
issue the following commands:
cd /var/yp/Finance
rm *
cd ..
rmdir Finance
7. If the slave is not a slave server in any other NIS domain, use a text
editor to set the NIS_SLAVE_SERVER variable to 0 in the
/etc/rc.config.d/namesvrs file.
NIS_SLAVE_SERVER=0
8. If the slave is not a server in any other NIS domain, issue the
following command to turn off NIS server capability:
/sbin/init.d/nis.server stop
For more information, see the man pages makedbm(1M) and ypfiles(4).