<HOME>
HOW TO CONFIGURE NIS ON RHEL-4


SERVER SIDE

Follow the steps to build a NIS server (say the FQDN of server is server1.example.com) -
Ensure that all the necessary RPM's are installed properly with all thye dependencies. Also ensure that DNS is accessable from server & client.

Lets assume a suitable name for our NIS domain, say MYNIS
Set this domain name using any one of the following commands.

#domainname MYNIS
#nisdomainname MYNIS
#ypdomainname MYNIS

Also set the same in
/etc/sysconfig/network file by adding following entry-

NISDOMAIN=MYNIS

Restart the network service and confirm the nisdomainname with the following command.

#domainname
MYNIS
(Should display MYNIS in very next line)

Next, change directory to
/var/yp and edit the file "MakeFile"

# cd /var/yp
#vi MakeFile

Search for the line as shown below (that starts with
all:) and edit as follows-

all: passwd
group shadow \

save and exit this file.
Now type the following command to create NIS server.
#/usr/lib/yp/ypinit -m
.........
........
..... some output will be displayed on screen
Press <Ctrl+D>
Press y

#chkconfig ypserv on
#service ypserve restart
#service  yppasswdd restart
***********************
That's all, your YP (NIS) server is up and running.

CLIENT SIDE

Set the NIS domainname same as server's Name as shown below

#domainname MYNIS

Now, run the
authconfig command,
#authconfig
OR
#system-config-authentication

Select [*] NIS and select [Next]
In this screen specify domain & server (as shown below as example)
Domain : MYNIS
Server :   server1.example.com
Select [Next]
(You should get "Listening to NIS server . . . ..      [OK]" line )
That's up ! NIS client is ready.
**********************************************************************************

Coming up next- HOW TO CONFIGURE AUTOFS FOR NIS CLIENT.
Hosted by www.Geocities.ws

1