How to Administer NIS+ Tables

How to Administer NIS+ Tables


The nistbladm command is the primary NIS+ table administration
utility. With this command, you can create, modify or delete tables
and table entries. To create a table you must have create rights to
the directory under which you will create. To delete a table you must
have a destroy rights to the directory. To modify a table, or to add,
change or delete the entries you must have modify rights to the table
or the entries.

Table column can have following characteristics:

S Searchable
I case insensitive
C encrypted

To create a table:

%% nistbladm -c table-type column-spec .... table-name

For example, to create a table of type 'computers' and of name
'computers.example.com.', with two columns, 'name' and 'model', which
are both searchable, you would use the following command:

%% nistbladm -c computers name=S model=S computers.example.com.

(assuming your domain_name is example.com)

To delete a table:

%% nistbladm -d table-name

For example, to delete your computers table, you would use the following command:

%% nistbladm -d computers.example.com.

For more info about adding entries or modifying entires, refer to the
nistbladm man page.


Home
FAQ