Nis

From TheBeard Science Project Wiki
Jump to: navigation, search
packages:
	ypserv

daemons:
	ypserv - distributes nis database
	ypbind - allows nis binding (client connections). used on both client and server side.
	yppasswd - login daemon
	ypxfrd - map transfer daemon

configs:
	/etc/ypserv.conf - main config file
	/var/yp/Makefile - contains many nis configs
	/var/yp/ypservers - list of slave servers

other:
	NIS - Network Information Service. synchronizes config files
	in a nis domain, nis masters provide nis maps (files) to nis slaves (optionally) which then provide maps for nis clients.

commands:
	/usr/lib/yp/ypinit -m - generates maps
	yppasswd - changes nis password
	ypwhich - locates nis servers

configuring nis server:
	- install ypserv
	- use 'domainname <nis-domain>' command OR edit /etc/sysconfig/network and add line 'NISDOMAIN="<nis-domain>"'
	- edit /var/yp/Makefile, find line that starts with 'all:', and list the files to be shared using nis
	- if there are no slave servers add the line 'NOPUSH=true'
	- if there are slaves list the slaves in /var/yp/ypservers
	- add names or ip addresses of allowed clients to /var/yp/securenets
	- allow those clients to the maps by editing the /etc/ypserv.conf file
	- start the ypserv daemon
	- start the yppasswdd daemon
	- generate maps by using the '/usr/lib/yp/ypinit -m' command
	- start ypbind daemon to allow clients to connect

configuring nis client:
	- use 'domainname <nis-domain>' command OR edit /etc/sysconfig/network and add line 'NISDOMAIN="<nis-domain>"'
	- edit /etc/yp.conf and add line 'domain <nis-domain> server <name>' OR add line 'domain <nis-domain> broadcast' to listen to broadcasts
	- start ypbind daemon
	- locate nis server using 'ypwhich' command
	- edit /etc/passwd and add line '+:*:0:0:::'
	- create alias so that yppasswd is used instead of passwd