Of Network Information. This Collection of Network Information Is Called The NIS Namespace
Of Network Information. This Collection of Network Information Is Called The NIS Namespace
The Network Information Service or NIS (originally called Yellow Pages or YP) consists of a client–server
directory service protocol for distributing system configuration data such as user and host names
between computers on a computer network.
NIS is a distributed database system that lets many computers share configuration files like
password files, group files, host tables, etc from the central network server (master server). NIS
makes network administration more manageable by providing centralized control over a variety
of network information. This collection of network information is called the NIS namespace.
NIS maps can replace or be used with the configuration files that exist on each UNIX
system.
NIS maps are located in the /var/yp/domainname directory (where domainname is the
name of the NIS domain).
Now we need to set the domainname, make sure the correct nsswitch.conf file is in
place, and start the NIS master server processes.
# domainname yourdomain
# domainname > /etc/defaultdomain
The first time you start ypinit, it will need to get it's naming information from
local files:
# cp /etc/nsswitch.files /etc/nsswitch.conf
# ypinit -m
# cp /etc/nsswitch.nis /etc/nsswitch.conf
# ypcat passwd
# cd /var/yp
# /usr/ccs/bin/make passwd
(Make sure that share /export/home directory which is having all the users info
# domainname yourdomain
# domainname > /etc/defaultdomain
# ypinit -c
# /usr/lib/netsvc/yp/ypstart (normally called from /etc/init.d/rcp)
(or)
# svcadm enable nis/client
# ypwhich should return nis_master
Also the following commands:
# ypcat passwd