|
|
HP-UX Reference > Nnisserver(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEnisserver — set up NIS+ servers. SYNOPSIS/usr/lib/nis/nisserver -r [-x] [-f] [-v] [-Y] [-d NIS+_domain] [-g NIS+_groupname] [-l network_passwd] /usr/lib/nis/nisserver -M [-x] [-f] [-v] [-Y] -d NIS+_domain [-g NIS+_groupname] [-h NIS+_server_host] /usr/lib/nis/nisserver -R [-x] [-f] [-v] [-Y] [-d NIS+_domain] [-h NIS+_server_host] DESCRIPTIONThe nisserver shell script can be used to set up a 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. It does not populate the tables. You will need to use nispopulate(1M) to populate the tables. Use the first synopsis (-r) to set up a root master server. You must be logged in as super-user on the server machine. Use the second synopsis (-M) to set up a non-root master server for the specified domain. You must be logged in as an NIS+ principal on a NIS+ machine and have create permission to the parent directory of the domain that you are setting up. The new non-root master server machine must already be an NIS+ client (see nisclient(1M)) and have the rpc.nisd daemon running (see rpc.nisd(1M)). Use the third synopsis (-R) to set up a replica server for both root and non-root domains. You must be logged in as an NIS+ principal on an NIS+ machine and have create permission to the parent directory of the domain that you are replicating. The new replica server machine must already be an NIS+ client (see nisclient(1M)) and have the rpc.nisd daemon running (see rpc.nisd(1M)). Options
EXAMPLESTo set up a root master server for domain hp.com. : root_server# /usr/lib/nis/nisserver -r -d hp.com. For the following examples make sure that the new servers are NIS+ clients and rpc.nisd is running on these hosts before executing nisserver. To set up a replica server for domain hp.com. on host hpreplica : root_server# /usr/lib/nis/nisserver -R -d hp.com. -h hpreplica To set up a non-root master server for domain xyz.hp.com. on host hpxyz with the NIS+ groupname as admin-mgr.xyz.hp.com. : root_server# /usr/lib/nis/nisserver -M -d xyz.hp.com. \ -h hpxyz -g admin-mgr.xyz.hp.com. To set up a non-root replica server for domain xyz.hp.com. on host hpabc: hpxyz# /usr/lib/nis/nisserver -R -d xyz.hp.com. -h hpabc |
|