Dashboard > Penrose 2.0 > ... > Network Information Service > Configuring NIS Server
Configuring NIS Server
Added by Endi S. Dewata, last edited by Jim Yang on Oct 08, 2007  (view change)
Labels: 
(None)


Configuring NIS Server

Install ypserv package:

yum install ypserv

Set NIS domain name:

/bin/domainname example.com

Store the domain name in /etc/sysconfig/network to make it permanent:

NISDOMAIN=example.com

Initialize NIS database:

/usr/lib/yp/ypinit -m

At this point, we have to construct a list of the hosts which will run NIS
servers.  localhost.localdomain is in the list of NIS server hosts.  Please continue to add
the names for the other hosts, one per line.  When you are done with the
list, type a <control D>.
        next host to add:  localhost.localdomain
        next host to add:  localhost
        next host to add:
The current list of NIS servers looks like this:

localhost.localdomain
localhost

Is this correct?  [y/n: y]  y

Start NIS server:

service portmap start
service ypserv start

Configure autostart:

chkconfig --add ypserv

Verify NIS server:

rpcinfo -u localhost ypserv
program 100004 version 1 ready and waiting
program 100004 version 2 ready and waiting

If the NIS server is behind firewall, you need to open the ports used by NIS server:

rpcinfo -p localhost
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100004    2   udp    691  ypserv
    100004    1   udp    691  ypserv
    100004    2   tcp    694  ypserv
    100004    1   tcp    694  ypserv

The above output shows that you need to open port 111, 691, and 694.

To allow changing user info, you need to enable yppasswdd service. Edit /etc/sysconfig/yppasswdd:

YPPASSWDD_ARGS="-e chsh -e chfn"

Then start the yppasswdd service:

service yppasswdd start

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators