Configure NIS Slave CentOS 6

Configure NIS Slave CentOS 6

Configure NIS Slave CentOS 6

a NIS slave is handy to have for larger deployments, and remote sites. Although relatively insecure NIS is a simple and elegant solution to your directory services needs in Linux.  This blog assumes you setup a NIS master using the following Blog: http://blog.zwiegnet.com/linux-server/configure-nis-server-centos-6/

Let’s get started, login to your first slave as root

CentOS 6 NIS slave setup: Let’s get started, login to your first slave as root

from here install the necessary components for NIS

CentOS 6 NIS slave setup: install the necessary components for NIS

set all service to run on startup

CentOS 6 NIS slave setup: set all service to run on startup

now we need to configure the NIS domain

CentOS 6 NIS slave setup: we need to configure the NIS domain

add the IP address of the master server to your config

CentOS 6 NIS slave setup: add the IP address of the master server to your config

edit your network settings

CentOS 6 NIS slave setup: edit your network settings

add the bottom line to your config (obviously customize)

CentOS 6 NIS slave setup: add the bottom line to your config (obviously customize)

start rpcbind

CentOS 6 NIS slave setup: start rpcbind

we need to also reconfigure on the master

CentOS 6 NIS slave setup: we need to also reconfigure on the master

make sure to add your slave

CentOS 6 NIS slave setup: make sure to add your slave

note the message at the bottom:

CentOS 6 NIS slave setup: note the message at the bottom

setup your hosts file on both the NIS master and slave (otherwise the whole thing won’t work right)

CentOS 6 NIS slave setup: setup your hosts file on both the NIS master and slave (otherwise the whole thing won’t work right)

start the following service:

CentOS 6 NIS slave setup: start the following service

now issue your update command

CentOS 6 NIS slave setup: issue your update command

now you should see the following:

CentOS 6 NIS slave setup: you should see the following

as you can see the update is a success

start the following service now and on reboot

CentOS 6 NIS slave setup: start the following service now and on reboot

also script the following command to run as a CRON job, so your slave automatically updates

CentOS 6 NIS slave setup: also script the following command to run as a CRON job, so your slave automatically updates

Done!

let’s just make sure it all works, verify you can see ypcat passwd

CentOS 6 NIS slave setup: let’s just make sure it all works, verify you can see ypcat passwd

You have configured a NIS Slave.

Hosted Linux servers at www.zwiegnet.com/go

To Configure a NIS Client Click Here

Related guides: Configure Automount CentOS 6

Leave a Reply

Your email address will not be published. Required fields are marked *