|
|
HP-UX Reference > Nnispopulate(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEnispopulate — populate the NIS+ tables in a NIS+ domain. SYNOPSIS/usr/lib/nis/nispopulate -Y [-x] [-f] [-n] [-u] [-v] [-S 0|2] [-l network_passwd] [-d NIS+_domain] -h NIS_server_host [-a NIS_server_addr] -y NIS_domain [table] ... /usr/lib/nis/nispopulate -F [-x] [-f] [-u] [-v] [-S 0|2] [-d NIS+_domain] [-l network_passwd] [-p directory_path] [table] ... /usr/lib/nis/nispopulate -C [-x] [-f] [-v] [-d NIS+_domain] [-l network_passwd] [hosts|passwd] DESCRIPTIONThe nispopulate shell script can be used to populate NIS+ tables in a specified domain from their corresponding files or NIS maps. nispopulate assumes that the tables have been created either through nisserver(1M) or nissetup(1M). The table argument accepts standard names that are used in the administration of HP-UX systems and non-standard key-value type tables. See nisaddent(1M) for more information on key-value type tables. If the table argument is not specified, nispopulate will automatically populate each of the standard tables. These standard (default) tables are: auto_master, auto_home, ethers, group, hosts, networks, passwd, protocols, services, rpc, netmasks, bootparams, netgroup, aliasesandshadow. Note that the shadow table is only used when populating from files. The non-standard tables that nispopulate accepts are those of key-value type. These tables must first be created manually with the nistbladm(1) command. Use the first SYNOPSIS (-Y) to populate NIS+ tables from NIS maps. nispopulate uses ypxfr(1M) to transfer the NIS maps from the NIS servers to the /var/yp/NIS_domain directory on the local machine. Then, it uses these files as the input source. Note that NIS_domain is case sensitive. Make sure there is enough disk space for that directory. Use the second SYNOPSIS (-F) to populate NIS+ tables from local files. nispopulate will use those files that match the table name as input sources in the current working directory or in the specified directory. Note that when populating the hosts and passwd tables, nispopulate will automatically create the NIS+ credentials for all users and hosts that are defined in the hosts and passwd tables, respectively. A network passwd is required to create these credentials. This network password is used to encrypt the secret key for the new users and hosts. This password can be specified using the -l option or it will use the default password, "nisplus". nispopulate will not overwrite any existing credential entries in the credential table. Use nisclient(1M) to overwrite the entries in the cred table. It creates both LOCAL and DES credentials for users, and only DES credentials for hosts. To disable automatic credential creation, specify the -S 0 option. The third SYNOPSIS (-C) is used to populate NIS+ credential table with level 2 authentication (DES) from the passwd and hosts tables of the specified domain. The valid table arguments for this operation are passwd and hosts. If this argument is not specified then it will use both passwd and hosts as the input source. If nispopulate was earlier used with -S 0 option, then no credentials were added for the hosts or the users. If later the site decides to add credentials for all users and hosts, then this (-C) option can be used to add credentials. Options
EXAMPLESTo populate all the NIS+ standard tables in the domain xyz.hp.com. from NIS maps of the yp.hp.com domain as input source where host yp_host is a YP server of yp.hp.com: /usr/lib/nis/nispopulate -Y -y yp.hp.com -h yp_host -d xyz.hp.com. To update all of the NIS+ standard tables from the same NIS domain and hosts shown above: /usr/lib/nis/nispopulate -Y -u -y yp.hp.com \ -h yp_host -d xyz.hp.com. To populate the hosts table in domain xyz.hp.com. from the hosts file in the /var/nis/files directory using "somepasswd" as the network password for key encryption: /usr/lib/nis/nispopulate -F -p /var/nis/files -l somepasswd hosts To populate the passwd table in domain xyz.hp.com. from the passwd file in the /var/nis/files directory without automatically creating the NIS+ credentials: /usr/lib/nis/nispopulate -F -p /var/nis/files -d xys.hp.com. \ -S 0 passwd To populate the credential table in domain xyz.hp.com. for all users defined in the passwd table. /usr/lib/nis/nispopulate -C -d xys.hp.com. passwd To create and populate a non-standard key-value type NIS+ table, "private", from the file /var/nis/files/private: (nispopulate assumes that the private.org_dir key-value type table has already been created). /usr/bin/nistbladm -D access=og=rmcd,nw=r \ -c private key=S,nogw= value=,nogw= private.org.dir /usr/lib/nis/nispopulate -F -p /var/nis/files private WARNINGSHP-UX 11i Version 2 is the last HP-UX release on which NIS+ is supported. LDAP is the recommended replacement for NIS+. HP fully supports the industry standard naming services based on LDAP. |
|