Setting Up a NIS Server Using YaST

NIS is widely used as a distributed authentication mechanism as it is freely available on almost all Unix and Unix-like systems. It is also easy to set up, and far less complex than LDAP.

You will not be surprised to find that YaST has a module for setting up a NIS server. To get a basic NIS configuration using this module is very straightforward.

FIGURE 25-1

The YaST module for NIS Server configuration

FIGURE 25-1

The YaST module for NIS Server configuration

Yast Nis Server

You call the YaST NIS Server module from the YaST menus (Network Services) or from the command line by typing yast2 nis_server. Then tollow these steps:

1. You will see a dialog like Figure 25-1. Choose Install and set up a NIS master server. If the NIS packages (ypserv, yptools, ypbind) are not already installed, YaST's package manager installs them for you.

2. Type the NIS domain name. (This is not necessarily the same as the DNS domain name, but very often, for reasons of simplicity, it may be.) As shown in Figure 25-2, you may choose to allow users to change their passwords and login shell.

3. The next screen (see Figure 25-3) defines the information set that the NIS server distributes to clients. If this server is to handle user logins, these so-called NIS maps (which contain and provide the necessary information) must at least include group and passwd (to export basic user information and authentication).

FIGURE 25-2

Specifying the NIS domain and capabilities in YaST

FIGURE 25-2

Specifying the NIS domain and capabilities in YaST

FIGURE 25-3

Selecting NIS maps to export IJIQg

FIGURE 25-3

4. As shown in Figure 25-4, you select network masks that define the hosts that will be able to access the NIS server. Hosts can contact the NIS server for authentication information if the bitwise AND of a specified netmask and the host's IP address is equal to one of the values specified for the network in this dialog box. The netmask/network pair 0.0.0.0/0.0.0.0, therefore, enables any host to contact this NIS server. This is safe only if your network is not connected to the Internet or if you have a firewall between your network and the Internet that disables NIS and NFS RPC traffic. Click Finish to continue.

5. YaST now updates your system, starts the NIS server ypserv, and sets ypserv to run in its default runlevels. You are now ready to configure (and test) the NIS client as described later in this chapter, in the section "Configuring Clients for NIS.''

Was this article helpful?

0 0

Post a comment