package for more information.
Chapter 13. The Network Information System
When you're running a local area network, your overall goal is usually to provide an environment for your users that makes the network transparent. An important stepping stone is keeping vital data such as user account information synchronized among all hosts. This provides users with the freedom to move from machine to machine without the inconvenience of having to remember different passwords and copy data from one machine to another. Data that is centrally stored doesn't need to be replicated, so long as there is some convenient means of accessing it from a network-connected host. By storing important administrative information centrally, you can make ensure consistency of that data, increase flexibility for the users by allowing them to move from host to host in a transparent way, and make the system administrator's life much easier by maintaining a single copy of information to maintain when required.
We previously discussed an important example of this concept that is used on the Internet - the Domain Name System (DNS). DNS serves a limited range of information, the most important being the mapping between hostname and IP address. For other types of information, there is no such specialized service. Moreover, if you manage only a small LAN with no Internet connectivity, setting up DNS may not seem to be worth the trouble.
This is why Sun developed the
NIS is based on RPC, and comprises a server, a client-side library, and several administrative tools. Originally, NIS was called
Today, NIS is available for virtually all Unixes, and there are even free implementations. BSD Net-2 released one that has been derived from a public domain reference implementation donated by Sun. The library client code from this release had been in the Linux
Peter Eriksson developed a new implementation called NYS.[74] It supports both plain NIS and Sun's much enhanced NIS+. NYS not only provides a set of NIS tools and a server, but also adds a whole new set of library functions that need to be compiled into your
The GNU libc, known as
This chapter focuses on the NIS support included in the GNU
Getting Acquainted with NIS
NIS keeps database information in files called
The maps themselves are usually generated from master text files such as
Table 13.1: Some Standard NIS Maps and Corresponding Files
| Master File | Map(s) | Description |
|---|---|---|
| Maps IP addresses to host names | ||
| Maps IP network addresses to network names | ||
| Maps encrypted passwords to user login names | ||
| Maps Group IDs to group names |
