{"id":237,"date":"2015-07-06T11:14:40","date_gmt":"2015-07-06T11:14:40","guid":{"rendered":"http:\/\/www.howtolearnlinux.com\/?p=237"},"modified":"2019-01-26T03:43:00","modified_gmt":"2019-01-26T03:43:00","slug":"nis-network-information-service","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=237","title":{"rendered":"NIS : Network Information Service"},"content":{"rendered":"<p>An NIS system maintains and distributes a central directory of user and group information, hostnames, e-mail aliases and other text-based information in a network.<\/p>\n<p>Though not the core purpose, NIS can be used for centralized authentication too.<\/p>\n<p>Server packages:<\/p>\n<p>ypserve<br \/>\nypbind<br \/>\nmake<\/p>\n<p>Client package:<\/p>\n<p>ypbind<\/p>\n<p>Procedure to create an NIS authentication server:<\/p>\n<p>Logon to server host<br \/>\nCreate users and assign password<br \/>\nEdit \/etc\/sysconfig\/network and add the line &#8220;NISDOMAIN=llc&#8221;<br \/>\nStart the ypserv service<br \/>\nCreate a database for the master NIS servers<br \/>\n# \/usr\/lib\/yp\/ypinit -m<br \/>\nIf this is the only server press &#8220;Q&#8221;<br \/>\nA new folder \/var\/yp\/llc will be created.<br \/>\nEdit \/etc\/hosts with the following entry<br \/>\nwww.llc<br \/>\nIn the client run the tool authconfig.<br \/>\nEnable NIC and give the servers IP address.<br \/>\nLogout and try loging back<\/p>\n<p>Client host] # ypwhich : Shows the server to which the host is connected.<\/p>\n<p>Client host] # ypcat password : Displays the password database<\/p>\n<p>We might need to mount home directories from the server. Mounting it using autofs should be good.<\/p>\n<p>NIS slave<\/p>\n<p>It is good to run an NIS slave server in a network. By this, if the primary server goes down, the slave should be able to perform authentication. The slave replicated its database from the primary frequently.<\/p>\n<p>Procedure to configure an NIS slave:<\/p>\n<p>Append &#8220;NISDOMAIN=llc&#8221; in \/etc\/sysconfig\/network<br \/>\nStart the service ypserv<br \/>\nRun the command \/usr\/lib\/yp\/ypinit -S<br \/>\nThe database gets populated in \/var\/yp\/llc automatically<\/p>\n<p>If any change is done in an NIS server, the database should be recreated using<br \/>\n# make -c \/var\/yp<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>An NIS system maintains and distributes a central directory of user and group information, hostnames, e-mail aliases and other text-based information in a network. Though <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=237\" title=\"NIS : Network Information Service\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":264,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=237"}],"version-history":[{"count":1,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":238,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions\/238"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/264"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}