Customizing NIS

At times it may be useful to use the features of NIS ourselves. Doing this means we don't have to be concerned about ensuring that the same files are up-to-date on every machine or about distributing them. The problem is that we have to customize the makefile to add this support, which can be quite tricky.

To show how this can be done, we will add a hypothetical map to our setup. The one we'll use will be responsible for controlling which users have access to applications on which machines.

The “userAccessList” File

This is the input file that will be used to build the map. It contains a list of UIDs, the machine each UID can use, and a list of the applications the UIDs are allowed access to:

 tin# cat /etc/userAccess # # UID ...

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.