| |
Creating your own NIS maps
By modifying /var/yp/Makefile, you can create your own NIS maps.
For example, we have telephone numbers in file /etc/telephones
To generate a NIS map for telephones, modify /var/yp/Makefile on the NIS server as follows:
after NETMASKS = $(YPSRCDIR)/netmasks, create a new line with
Add telephones to the list of NIS maps:
In end of the file, create a new entry
NOTE: each new line after telephones: starts with < Tab > .
Re-build the NIS maps:
Check if you can get the phone numbers on the client through NIS:
|
|