[Next] [Previous] [Up] [Top] [Contents] 
 21.3.6  NIS+ Setup
 21.3.6.1  Root Master Server
- 1.  Choose a domainname
# domainname acs.ohio-state.edu.
# domainname > /etc/defaultdomain
 - Choose the NIS+ version for nsswitch.conf
# cp /etc/nsswitch.nisplus /etc/nsswitch.conf
 - Initialize the server
# nisinit -r
where
-r  root server
 - Start the daemon
# rpc.nisd -rS 0
where
-r  indicates a root server
-S 0  sets the security level to 0, i.e. non-secure, does not enforce access controls
 - Setup the NIS+ directory structure
# /usr/lib/nis/nissetup acs.ohio-state.edu.
 - Add data to the tables
cat <file> | nisaddent -a <tablename>
where
-a  specifies to add entries without deleting existing entries
 - Verify the entries, e.g.
# niscat hosts.org_dir
 
Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]