Solaris ネーミングの設定と構成

NIS+ 用デフォルトスイッチファイル

Solaris 2.6 リリースで提供される NIS+ 用スイッチファイルは、nsswitch.nisplus です。


例 1-1 デフォルトの nsswitch.nisplus ファイル

# 
# /etc/nsswitch.nisplus: 
# 
# An example file that could be copied over to /etc/nsswitch.conf; it 
# uses NIS+  (NIS Version 3) in conjunction with files. 
# 
# "hosts:" and "services:" in this file are used only if the 
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. 
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group. 
passwd: files nisplus 
group: files nisplus 
# consult /etc "files" only if nisplus is down.  
hosts: nisplus [NOTFOUND=return] files 
#Uncomment the following line, and comment out the above, to use both DNS
#and NIS+. You must also set up the /etc/resolv.conf file for DNS name 
#server lookup. See resolv.conf(4). 
#hosts: nisplus dns [NOTFOUND=return] files 
services: nisplus [NOTFOUND=return] files 
networks: nisplus [NOTFOUND=return] files 
protocols:nisplus [NOTFOUND=return] files 
rpc: nisplus [NOTFOUND=return] files 
ethers: nisplus [NOTFOUND=return] files 
bootparams: nisplus [NOTFOUND=return] files
publickey: nisplus 
netgroup:nisplus 
automount: files nisplus 
aliases: files nisplus 
sendmailvars: files nisplus