<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nocrash.net/index.php?action=history&amp;feed=atom&amp;title=NIS_Setup</id>
	<title>NIS Setup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nocrash.net/index.php?action=history&amp;feed=atom&amp;title=NIS_Setup"/>
	<link rel="alternate" type="text/html" href="https://wiki.nocrash.net/index.php?title=NIS_Setup&amp;action=history"/>
	<updated>2026-06-04T22:59:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.nocrash.net/index.php?title=NIS_Setup&amp;diff=39&amp;oldid=prev</id>
		<title>Chris: Created page with &quot;Configuring NIS under Red Hat Linux  The following describes a procedure to set up NIS network name service under Red Hat Linux. This is geared toward a small intallation with on...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nocrash.net/index.php?title=NIS_Setup&amp;diff=39&amp;oldid=prev"/>
		<updated>2010-08-05T13:45:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Configuring NIS under Red Hat Linux  The following describes a procedure to set up NIS network name service under Red Hat Linux. This is geared toward a small intallation with on...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Configuring NIS under Red Hat Linux&lt;br /&gt;
&lt;br /&gt;
The following describes a procedure to set up NIS network name service under Red Hat Linux. This is geared toward a small intallation with only one domain. However, it should be fairly evident how to add more NIS domains. The NIS domain name has nothing to do with any DNS naming convention being used.&lt;br /&gt;
&lt;br /&gt;
In these examples, the following conventions are used:&lt;br /&gt;
 NIS domain: &amp;quot;internal&amp;quot;&lt;br /&gt;
 Code or configuration file data: colored&lt;br /&gt;
 Root prompt on NIS master server: master#&lt;br /&gt;
 Root prompt on NIS client host: client#&lt;br /&gt;
 Setting up a NIS master server:&lt;br /&gt;
&lt;br /&gt;
Required packages: yp-tools ypbind ypserv portmap&lt;br /&gt;
&lt;br /&gt;
Set up &amp;quot;time&amp;quot; service to run via inetd/xinetd, or configure xntpd, or otherwise make sure the host&amp;#039;s clock is synchronized.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/yp.conf:&lt;br /&gt;
&lt;br /&gt;
 domain internal server ip.of.nis.server&lt;br /&gt;
&lt;br /&gt;
Edit /etc/ypserv.conf:&lt;br /&gt;
&lt;br /&gt;
 dns: no&lt;br /&gt;
 files: 30&lt;br /&gt;
 xfr_check_port: yes&lt;br /&gt;
 * : * : shadow.byname : port&lt;br /&gt;
 * : * : passwd.adjunct.byname : port &lt;br /&gt;
&lt;br /&gt;
Edit /etc/sysconfig/network:&lt;br /&gt;
&lt;br /&gt;
 NISDOMAIN=&amp;quot;internal&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Set NIS domain name:&lt;br /&gt;
&lt;br /&gt;
 master# domainname internal&lt;br /&gt;
 master# ypdomainname internal&lt;br /&gt;
&lt;br /&gt;
Create file /var/yp/securenets:&lt;br /&gt;
&lt;br /&gt;
 host 127.0.0.1&lt;br /&gt;
 255.255.255.0   10.0.0.0&lt;br /&gt;
&lt;br /&gt;
Make sure the &amp;quot;portmap&amp;quot; service is running:&lt;br /&gt;
&lt;br /&gt;
 master# service portmap start&lt;br /&gt;
 master# chkconfig portmap on&lt;br /&gt;
&lt;br /&gt;
Portmap will need a rule in /etc/hosts.allow to allow access from localhost and any hosts that need to access NIS.&lt;br /&gt;
&lt;br /&gt;
Start ypserv service:&lt;br /&gt;
&lt;br /&gt;
 master# service ypserv start&lt;br /&gt;
&lt;br /&gt;
Check that it&amp;#039;s listening:&lt;br /&gt;
&lt;br /&gt;
 master# rpcinfo -u localhost ypserv&lt;br /&gt;
&lt;br /&gt;
You should see:&lt;br /&gt;
&lt;br /&gt;
 program 100004 version 1 ready and waiting&lt;br /&gt;
 program 100004 version 2 ready and waiting&lt;br /&gt;
&lt;br /&gt;
Initialize the NIS maps:&lt;br /&gt;
&lt;br /&gt;
 master# /usr/lib/yp/ypinit -m&lt;br /&gt;
&lt;br /&gt;
Specify local hostname, Ctrl-D, y, let finish.&lt;br /&gt;
&lt;br /&gt;
Start up ypbind, yppasswdd, ypxfrd:&lt;br /&gt;
&lt;br /&gt;
 master# service ypbind start&lt;br /&gt;
 master# service yppasswdd start&lt;br /&gt;
 master# service ypxfrd start &lt;br /&gt;
&lt;br /&gt;
Set YP services to run on boot-up:&lt;br /&gt;
&lt;br /&gt;
 master# chkconfig ypserv on&lt;br /&gt;
 master# chkconfig ypbind on&lt;br /&gt;
 master# chkconfig yppasswdd on&lt;br /&gt;
 master# chkconfig ypxfrd on&lt;br /&gt;
&lt;br /&gt;
NIS client host setup&lt;br /&gt;
&lt;br /&gt;
Required packages: yp-tools ypbind portmap&lt;br /&gt;
&lt;br /&gt;
Edit /etc/sysconfig/network:&lt;br /&gt;
&lt;br /&gt;
 NISDOMAIN=internal&lt;br /&gt;
&lt;br /&gt;
Edit /etc/yp.conf:&lt;br /&gt;
&lt;br /&gt;
domain internal server ip.of.master.server&lt;br /&gt;
&lt;br /&gt;
Edit /etc/hosts:&lt;br /&gt;
&lt;br /&gt;
 ip.of.master.server    hostname.domain hostname&lt;br /&gt;
&lt;br /&gt;
Set NIS domain-name:&lt;br /&gt;
&lt;br /&gt;
 client# domainname internal&lt;br /&gt;
 client# ypdomainname internal&lt;br /&gt;
&lt;br /&gt;
Edit /etc/nsswitch.conf:&lt;br /&gt;
&lt;br /&gt;
 passwd:     files nis&lt;br /&gt;
 shadow:     files nis&lt;br /&gt;
 group:      files nis&lt;br /&gt;
&lt;br /&gt;
Make sure the portmap service is running:&lt;br /&gt;
&lt;br /&gt;
 client# service portmap start&lt;br /&gt;
 client# chkconfig portmap on&lt;br /&gt;
&lt;br /&gt;
The /etc/hosts.allow file will need rules allowing access from localhost and the NIS master server.&lt;br /&gt;
&lt;br /&gt;
Start ypbind service:&lt;br /&gt;
&lt;br /&gt;
 client# service ypbind start&lt;br /&gt;
 client# chkconfig ypbind on&lt;br /&gt;
&lt;br /&gt;
Test it out:&lt;br /&gt;
&lt;br /&gt;
 client# rpcinfo -u localhost ypbind&lt;br /&gt;
 client# ypcat passwd&lt;/div&gt;</summary>
		<author><name>Chris</name></author>
	</entry>
</feed>