Pick a Free OS

NIS on Linux

# shadow: db files nisplus nis

# group: db files nisplus nis

passwd: files nis

shadow: files nis

group: files nis

#hosts: db files nisplus nis dns

hosts: files nis dns

services: nis [NOTFOUND=return] files

networks: nis [NOTFOUND=return] files

protocols: nis [NOTFOUND=return] files

rpc: nis [NOTFOUND=return] files

ethers: nis [NOTFOUND=return] files

netmasks: nis [NOTFOUND=return] files

bootparams: nis [NOTFOUND=return] files

netgroup: nis

publickey: nis

automount: files nis

aliases: files nis


Look at the following lines in the file

passwd: files nis

shadow: files nis

group: files nis

hosts: files nis dns

The first column indicates the file in question. For ex. Passwd. The next column indicates the source of the file.

We then set up the client daemon to start at boot time as follows:

cd /etc/rc.d/rc3.d

ln -s ../init.d/ypbind ypbind.

Now it was time to communicate with the NIS server. We did this by the command:

/etc/rc.d/init.d/ypbind start

With the client and server configured, we tested our valuable work with

ypcat passwd

Our output was as follows:

client1:x:503:504:client1:/home/httpd/html/client1:/bin/bash

john:x:502:503:john mathews:/home/john:/bin/bash

client2:x:504:505:client2:/home/httpd/html/client2:/bin/bash

joe:x:500:503:joe smith:/home/joe:/bin/bash

bill:x:501:503:bill gates:/home/bill:/bin/bash

With that the NIS services are successfully up and running.