Configuration
First we must include the master server in the NIS domain, why publish the file / etc / sysconfig / network:
# Vi / etc / sysconfig / network
Add this line to the end:
Nisdomain = "mydomain.com"
We declare the NIS master server as a client itself by editing / etc / yp.conf:
# Vi / etc / yp.conf
We add this line to that file, 127.0.0.1 corresponding to the local loop:
ypserver 127.0.0.1
This part is configured, we can start the portmap (converts RPC program numbers into port numbers software DARPA), yppasswdd (daemon for changing the password of a user on the NIS master server from the client NIS) and ypserv (NIS daemon server principal).
# Service portmap start
# Service yppasswdd home
# Service ypserv start
Let us not forget to add these services to boot:
# Chkconfig portmap is
# Chkconfig is yppasswdd
# Chkconfig ypserv
To verify that the services are running correctly, run the rpcinfo command and verify that each process is listed:
# Rpcinfo-p localhost
program to proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100009 1 udp 681 yppasswdd
100004 2 udp 698 ypserv
100004 1 udp 698 ypserv
100004 2 tcp 701 ypserv
100004 1 tcp 701 ypserv
Now initialize our NIS domain by running the utility ypinit:
# / M-usr/lib64/yp/ypinit
Our NIS domain is configured, the services are starting ypbind (NIS client daemon) and ypxfrd (daemon allowing rapid transfer of large NIS maps):
# Service ypbind start
# Service ypxfrd home
The NIS master server is now installed and configured, install a NIS slave server (optional, depending on your network architecture).
Bookmarks