HomePage » Security » SecurityNIS


NIS

NIS is used for centralizing authentication service.

Reference
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS
http://www.freebsddiary.org/nis-client.php

Installing NIS Server
yum install ypserv
echo NISDOMAIN=MY-DOMAIN >> /etc/sysconfig/network
echo "ypserver 127.0.0.1" >> /etc/yp.conf


Setting up yp services
/etc/init.d/yppasswdd start
/etc/init.d/ypserv start
/usr/lib64/yp/ypinit -m
/etc/init.d/ypbind start
/etc/init.d/ypxfrd start


Propagate system passwords to yp
This is required when your NIS server's password changes.
cd /var/yp
make


Testing NIS
Following the sections below to setup NIS client. Then on your client, do this to verify connectivity to NIS server is good.

ypcat passwd


Configuring NIS client on Fedora
authconfig-tui


/etc/yp.conf
domain MY-DOMAIN server 192.168.1.100


/etc/sysconfig/network
NISDOMAIN=MY-DOMAIN


Finally, edit /etc/nsswitch.conf and add nis to passwd, shadow, groups, hosts.

Configuring NIS client on Ubuntu/Debian
aptitude will ask for the default NIS domain. If you wish to update it in the future, edit /etc/defaultdomain

aptitude install portmap nis


Then edit /etc/nsswitch.conf

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki