Nis
§Commands
•ypwhich duck
•ypcat -k passwd
•ypcat group
•ypmatch duck hosts
•getent passwd root
•yppasswd
§files
•/var/yp/Makefile
§set up nis master server
•cp /usr/lib/NIS.Makefile /var/yp/Makefile
•edit /etc/defaultdomain
•set B=-b in Makefile to allow dns to work w/ nis
•/usr/etc/yp/ypinit -m
•to start:
ypserv
ypbind
ypxfrd
•autostarted by /etc/rc2.d/S71rpc
§set up nis slave server
•/etc/domainname should = nis domain name in the master
•ypbind
•ypcat -k ypservers
•ypinit -s master-hostname
•ypserv
§setup nis client
•vi /etc/defaultdomain
must be = master nis domain name
•cp /etc/nsswitch.nis /etc/nsswitch.conf
•to use dns as well:
-vi /etc/nsswitch.conf
hosts: files nis dns
-configure /etc/resolv.conf
•ypinit -c
§remove nis from solaris client
•rm -r /var/yp/’domainname’
•rm /etc/defaultdomain
•cp /etc/nsswitch.files /etc/nsswitch.conf
•vi /etc/nsswitch.conf
-hosts: files dns
•reboot