Network Information Service (NIS) B.11.31.02 Administrator's Guide
sys::3:root,uucp
adm::4:root,adm
daemon::5:root,daemon
mail::6:root
lp::7:root,lp
tty::10:
nuucp::11:nuucp
users::20:root
nogroup:*:-2:
smbnull::101:
hpsmh::102:
sshd::103:
nisg::104:
nisgr::105:
For more information, see group (4).
Enabling the NIS Client Capability
To enable the NIS client capability, complete the following steps:
NOTE: Back up the NIS configuration file /etc/rc.config.d/namesvrs file and the
/etc/nsswitch.conf file before performing the steps described in this section.
1. Enter the following command on the NIS master or slave server to verify that the NIS server
to which the client wants to bind is running:
# /usr/bin/ypwhich -m
2. Log in to the NIS client as superuser.
3. Ensure that the $PATH environment variable includes the following directory paths:
• /var/yp
• /usr/lib/netsvc/yp
• /usr/ccs/bin
4. Enter the following command to set the NIS domain name:
/usr/bin/domainname domainname
Where:
domainname is the domain name of the server serving the client. Following is an example
of the /usr/bin/domainname command:
/usr/bin/domainname marketing
Where:
marketing is the domainname
5. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the domain
name and the NIS_CLIENT variable to 1, as follows:
NIS_DOMAIN=domainname
NIS_CLIENT=1
6. Copy the /etc/nsswitch.nis file to /etc/nsswitch.conf, as follows:
cp /etc/nsswitch.nis /etc/nsswitch.conf
7. To start the NIS client processes, enter the following command:
/sbin/init.d/nis.client start
For more information, see domainname (1), ypbind (1M), and nsswitch.conf (4). For information
about how to make the client bind to a particular server, see “Binding an NIS Client to a Server
on a Different Subnet” (page 42).
40 Configuring and Administering an NIS Client