|
Configure linux nis server step by step guide example and implementation |
| Home | Peer to Peer | CompTIA N+ | CCNA | MCSE | MCITP | RHCE | Interview | Tips n Tricks |
Configure linux nis server step by step guide example and implementationNIS, or Network Information Systems, is a network service that allows authentication and login information to be stored on a centrally located server. This includes the username and password database for login authentication, database of user groups, and the locations of home directories. RHCE exam questions
RHCE exam doesn't ask candidate to configure NIS server. It test only NIS client side configuration. As you can see in example questions. But here in this article we will configure both server and client side for testing purpose so you can get more depth knowledge of nis server Configure NIS serverIn this example we will configure a NIS server and a user nis1 will login from client side. For this example we are using two systems one linux server one linux clients . To complete these per quest of ssh server Follow this link
We have configured all these steps in our pervious article. necessary configuration for nis server We suggest you to review that article before start configuration of nis server. Once you have completed the necessary steps follow this guide. Seven rpm are required to configure nis server. ypserv, cach, nfs, make, ypbind, portmap, xinetd check them if not found then install
Now check nfs,ypserv,yppasswdd,ypbind, portmap, xinetd service in system service it should be on #setup Select System service from list [*]portmap [*]xinetd [*]nfs [*]ypserv [*]yppasswdd [*]ypbind
Now open /etc/sysconfig/network file
Now create a user named nis1 and give his home directory on /rhome with full permission
Now open /etc/exports file
now open /var/yp/Makefile file Now restart these service #service portmap restart #service xinetd restart #service nfs restart #service ypserv restart #service yppasswdd restart Don't restart ypbind service at this time as we haven't updated our database
Now change directory to /var/yp and run make command to create database
now update this database by running this commands [ first add server and then add
all client machine one by one. After adding press CTRL+D to save, confirm by pressing y] Now once again restart all these service this time there should be no error #service portmap restart #service xinetd restart #service nfs restart #service ypserv restart #service yppasswdd restart #service ypbind restart Now set all these service to on with chkconfig so these could be on after restart #chkconfig portmap on #chkconfig xinetd on #chkconfig nfs on #chkconfig ypserv on #chkconfig yppasswdd on #chkconfig ypbind on Client configuration
To know how configure telnet server read To know how configure nfs server read Once you successfully completed necessary test then start configuration of client sides.
Two rpm are required to configure clients yp-tools and ypbind check them for install
now open /etc/sysconfig/network file
now run setup command and select authentication configuration from list
no open /etc/auto.master file
now open /etc/auto.misc file
now restart autofs and ypbind service set these service on via chkconfig commands #chkconfig autofs on #chkconfig ypbind on now restart the system #reboot -f
login from nis1 user on client system |
|||||
|
|
|
|