Fedora 6 and Red Hat Enterprise Linux Bible

Network Information Service (NIS) was created by Sun Microsystems as a way of managing information that is shared among a group of host computers on a network. Using NIS, computers can share a common set of user accounts, user groups, and TCP/IP hostnames, as well as other information.

NIS was originally called Yellow Pages, but Sun had to change this name because it was trademarked. Some people still refer to NIS as YP, and many of the NIS commands (and even NIS package names ) begin with the letters "yp." To use NIS as a client, you need to have the ypbind and yp-tools packages installed. To configure an NIS server, you need the ypserv package installed as well. (Type yum install ypbind yp-tools ypserve to install NIS.)

Warning 

NIS is considered insecure by today's standards because it passes clear-text passwords. It is included here because there are still many older UNIX shops that use NIS. If you are starting from scratch, consider using a facility such as LDAP or NIS+ information services, which can pass encrypted password information.

The information you share with NIS comes from files that are used with UNIX systems and, therefore, compatible with other UNIX-like systems, such as Fedora or Red Hat Enterprise Linux. The group of computers that the master NIS server supports is referred to as an NIS domain . This domain is a defined set of host computers that may or may not be the same group of computers contained in a TCP/IP domain.

With NIS, an administrator creates information databases called maps from common UNIX (or Linux) system files. The NIS maps are created on the master NIS server and are accessible to other host computers from that server. Just in case the master server is down or inaccessible, one or more slave servers can be defined. The NIS slave servers contain copies of the NIS maps and can provide that information to client computers when the master is unavailable. However, NIS slave servers are not used to create the maps.

When the maps have been shared among the computers in the NIS domain, the main result is that all the computers share a common set of users and network configuration. The following is a list of files that are available for sharing by NIS (not all of them are set up for sharing by default).

Note 

Some of the files just shown may not be applicable to your Fedora or RHEL system. Don't worry if some of these files don't exist. In the course of setting up your system (adding users, configuring networks, and so on), you will set up the files you need.

Although these files are created in the /etc directory, the NIS administrator can copy these files to a different location and change them, so as not to share the master NIS server's original configuration files. Files can also be added to this list or removed from the list as the NIS administrator chooses. When an NIS client computer is configured, this configuration information can be obtained from the NIS master server.

Категории