HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
n
nispopulate(1M) nispopulate(1M)
-h NIS_server_host specifies the NIS server hostname from where the NIS maps are copied. This is only
used with the -Y option. This host must already exist in either the NIS+ hosts
table or /etc/hosts file. If the hostname is not defined, the script will prompt you
for its IP address, or you can use the -a option to specify the address manually.
-l network_passwd specifies the network password for populating the NIS+ credential table. This is only
used when you are populating the hosts and passwd tables. The default passwd is
nisplus.
-n does not overwrite local NIS maps in /var/yp/NISdomain directory if they already
exist. The default is to overwrite the existing NIS maps in the local
/var/yp/NISdomain directory. This is only used with the -Y option.
-p directory_path specifies the directory where the files are stored. This is only used with the -F
option. The default is the current working directory.
-S 0|2 specifies the authentication level for the NIS+ clients. Level 0 is for unauthenticated
clients and no credentials will be created for users and hosts in the specified domain.
Level 2 is for authenticated (DES) clients and DES credentials will be created for
users and hosts in the specified domain. The default is to set up with level
2 authenti-
cation (
DES). There is no need to run
nispopulate with -C for level 0 authentica-
tion.
-u updates the NIS+ tables (ie., adds, deletes, modifies) from either files or NIS maps.
This option should be used to bring an NIS+ table up to date when there are only a
small number of changes. The default is to add to the NIS+ tables without deleting
any existing entries. Also, see the
-n option for updating NIS+ tables from existing
maps in the /var/yp directory.
-v runs the script in verbose mode.
-x turns the "echo" mode on. The script just prints the commands that it would have
executed. Note that the commands are not actually executed. The default is off.
-Y populate the NIS+ tables from NIS maps.
-y NIS_domain specifies the NIS domain to copy the NIS maps from. This is only used with the
-Y
option. The default domainname is the same as the local domainname.
EXTERNAL INFLUENCES
TMPDIR
nispopulate normally creates temporary files in the directory /tmp. You may specify another direc-
tory by setting the environment variable TMPDIR to your chosen directory. If TMPDIR is not a valid direc-
tory, then
nispopulate will use /tmp.
EXAMPLES
To 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
direc-
tory 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 direc-
tory 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
Section 1M592 2 HP-UX Release 11i: December 2000
___
___