NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5 243
To Modify an Entry in an NIS+ Table
You can use either of two methods to modify a table entry:
1. You can use nistbladm(1) to modify the entry directly.
2. You can use nisaddent(1M) to dump the table to a file, and you can
modify the file. Then, you can use nisaddent to update the NIS+
table from the file.
You can use SAM (System Administration Manager) to modify entries in
NIS+ tables. To run SAM, type sam at the HP-UX prompt.
You must have modify permission for the table or for the entries you
want to modify.
For more information, see the following man pages: nistbladm(1),
nisaddent(1M), niscat(1), and sam(1M).
To Modify an Entry with nistbladm
• Issue the following command from any NIS+ client host:
nistbladm -m column_name=new_value column_name=new_value
... \
’[column_name=old_value,column_name=old_value
...],tablename’
The following example changes a user’s shell in the passwd table:
nistbladm -m shell=ksh ’[name=maddy,uid=6789],passwd.org_dir’
The values you specify inside the square brackets must identify a single
entry.
To get the names of the columns in a table, issue the following command:
niscat -o tablename.org_dir
For more information, see the following man pages: nistbladm(1M) and
niscat(1).