Sets up NIS+ servers.
/usr/lib/nis/nisserver -r [ -d Domain ] [ -f ] [ -g GroupName ] [ -l Password ] [ -v ] [ -x ] [ -Y ]
/usr/lib/nis/nisserver -M -d Domain [ -f ] [ -g GroupName ] [ -h HostName ] [ -v ] [ -x ] [ -Y ]
/usr/lib/nis/nisserver -R [ -d Domain ] [ -f ] [ -h HostName ] [ -v ] [ -x ] [ -Y ]
The nisserver command is a shell script used to set up root master, non-root master, and replica NIS+ servers with level 2 security (DES).
When setting up a new domain, this script creates the NIS+ directories (including groups_dir and org_dir) and system table objects for the domain specified in Domain. However, nisserver does not populate tables with data. Use nispopulate to populate tables.
The -r flag is used to set up a root master server. In order to use this flag, you must be a superuser on the server where nisserver is executing. The -M flag is used to set up a non-root master server for the specified domain. To use this flag you must be an NIS+ principal on an NIS+ machine and have write permission to the parent directory of Domain. The new non-root master server must already be an NIS+ client (see the nisclient command) with the rpc.nisd daemon running. The -R flag is used to set up a replica server for both root and non-root domains. You must be an NIS+ principal on an NIS+ server and have write permission to the parent directory of the domain being replicated.
/usr/lib/nis/nisserver -r -d abc.com.
/usr/lib/nis/nisserver -R -d abc.com.
/usr/lib/nis/nisserver -R -d abc.com. -h abcreplica
/usr/lib/nis/nisserver -M -d abc.xyz.com.
/usr/lib/nis/nisserver -M -d abc.xyz.com. -h defhost -g admin-mgr.abc.xyz.com.
/usr/lib/nis/nisserver -R -d abc.xyz.com. -h defhost
Note: In each of the last three examples, the host must be an NIS+ client with the rpc.nisd daemon running before executing the command string.
The nisaddcred command, the nisclient command, the nisgrpadm command, the nisinit command, the nismkdir command, the nispopulate command, the nissetup command, and the rpc.nisd daemon.