Examining NIS+ Tables

Examining NIS+ Tables


Some NIS+ problems will be related to information missing from tables.
You can examine the contents of tables with a variety of commands.

niscat will output the entire contents of a table for you:

%% niscat passwd.org_dir

You can also examine the object properties of a table:

%% niscat -o passwd.org_dir

This can be very helpful, because it will show you if a table has
weird permissions which may be restricting access.

nismatch can also be used to find things in a table:

%% nismatch -h joe passwd.org_dir

niscat and nismatch both directly access the NIS+ tables. getent, on
the other hand, will look up tables in the order defined in the
/etc/nsswitch.conf. A typical getent command would be the following:

%% getent passwd joe

This would look up the user joe in passwd. In a typical environment,
it would access files first, and then NIS+. If you find that getent
and nismatch give you different answers, you should look at your
nsswitch.conf. Perhaps a naming service that is listed earlier in your
nsswitch.conf has different info. Alternatively, maybe NIS+ is not
listed at all in your nsswitch.conf.


Home
FAQ