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
nisaddent(1M) nisaddent(1M)
-p Process the password field when loading password information from a file. By default, the pass-
word field is ignored because it is usually not valid (the actual password appears in a shadow
file).
-q Dump tables in "quick" mode. The default method for dumping tables processes each entry indi-
vidually. For some tables (e.g., hosts), multiple entries must be combined into a single line, so
extra requests to the server must be made. In "quick" mode, all of the entries for a table are
retrieved in one call to the server, so the table can be dumped more quickly. However, for large
tables, there is a chance that the process will run out of virtual memory and the table will not be
dumped.
-r Replace the file or map in the existing NIS+ table by first deleting any existing entries, and then
add the entries from the source (/etc files, or NIS+ maps). This option has the same effect as
the -m option. The use of this option is strongly discouraged due to its adverse impact on perfor-
mance, unless there are a large number of changes.
-t table Specify that table should be the NIS+ table for this operation. This should be a relative name as
compared to your default domain or the domainname if it has been specified.
-v Verbose.
-y ypdomain
Use the dbm files for the appropriate NIS map, from the NIS domain ypdomain, as the source of
input. The files are expected to be on the local machine in the
/var/yp/ypdomain directory.
If the machine is not an NIS server, use ypxfr(1M) to get a copy of the
dbm files for the appropri-
ate map.
-A All data. This option specifies that the data within the table and all of the data in tables in the
initial table’s concatenation path be returned.
-D defaults
This option specifies a different set of defaults to be used during this operation. The defaults
string is a series of tokens separated by colons. These tokens represent the default values to be
used for the generic object properties. All of the legal tokens are described below.
ttl=time
This token sets the default time to live for objects that are created by this command. The
value time is specified in the format as defined by the nischttl(1) command. The default is
12 hours.
owner=ownername
This token specifies that the NIS+ principal ownername should own the created object. The
default for this value is the principal who is executing the command.
group=groupname
This token specifies that the group groupname should be the group owner for the object
that is created. The default is NULL.
access=rights
This token specifies the set of access rights that are to be granted for the given object. The
value rights is specified in the format as defined by the nischmod(1) command. The default
is ----rmcdr - - -r---.
-M Master server only. This option specifies that lookups should be sent to the master server. This
guarantees that the most up-to-date information is seen at the possible expense that the master
server may be busy, or that it may be made busy by this operation.
-P Follow concatenation path. This option specifies that lookups should follow the concatenation
path of a table if the initial search is unsuccessful.
-Y map Use the dbm files for map as the source of input.
EXAMPLES
Add the contents of /etc/passwd to the passwd.org_dir table:
cat /etc/passwd | nisaddent passwd
Add the shadow information (note that the table type here is shadow, not passwd, even though the
actual information is stored in the
passwd table):
HP-UX Release 11i: December 2000 − 2 − Section 1M−−581
___
___