Working With Oracle® Solaris 11.2 Directory and Naming Services: DNS and NIS

Exit Print View

Updated: July 2014
 
 

How to Change the Source for All Naming Databases

Use this procedure to define a common source for all the databases that are used by the name service for lookups. By default, the common source is files. In this procedure, you are adding another source.

  1. Become an administrator.

    For more information about obtaining the appropriate rights to perform specific tasks, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. (Optional) Display the current configuration of the default property.
    # svccfg -s name-service/switch listprop config/default
    config                      application
    config/default              astring             files
    
  3. Add NIS as a default source.
    # svccfg -s system/name-service/switch
    svc:/system/name-service/switch> setprop config/default = astring: "files nis"
    svc:/system/name-service/switch> quit
  4. Refresh the service for the name service switch.
    # svcadm refresh name-service/switch