Solaris 10 NIS (1)

NIS: Network Information Service

Server Daemons
- ypserv
- rpc.yppasswdd ; handles client's password reset requests
- ypxfrd ; updates slave maps
- ypbind ; client side

slave daemon
- ypserv
- ypbind ; client side

Client
- ypbind ; client side

sourcefiles
/etc/passwd
/etc/hosts
/etc/group

/var/yp/...
Makefile
passwd.byname.time ; if this time is older than /etc/passwd, rebuild.
hosts.byname.time ; ...

/var/yp/binding/domain/ypservers ;list servers to bind to

/var/yp/domain/passwd.byname.pag
/var/yp/domain/hosts.byname.pag


/usr/lib/netsvc/yp/...
ypstart
ypstop
ypxfr
rpc.yppasswdd
ypxfr.1perhour

Map contents and sort keys

map.key.pag
map.key.dir

map : the base name of the map (hosts,passwd...)
key : the map's sort key (byname, byaddr...)
pag : the map's data
dir : An index to the *.pag file. If the *.pag file is small,
the *.dir file might be empty.

example:

/var/yp/domain/hosts.byname.pag
/var/yp/domain/hosts.byname.dir
/var/yp/domain/hosts.byaddr.pag
/var/yp/domain/hosts.byaddr.dir

NIS security

/var/yp/securenets
-----
host 127.0.0.1
255.255.255.255.0 150.10.1.0
host 13.13.14.1
-----

passwd.adjunct file

o

ypinit -m ; setup master not starting the daemon, but setup
ypinit -s ; setup slave
ypinit -c ; setup client