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

Exit Print View

Updated: July 2014
 
 

How to Use a Legacy nsswitch.conf File

Use this procedure if your existing naming switch configuration still uses the nsswitch.conf file. This procedure migrates your naming switch configurations from the file to SMF, the method to configure naming switch in Oracle Solaris.

  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. Copy the nsswitch.conf file to a new system.

    Make sure to name the file /etc/nsswitch.conf.

  3. Load the information from the file into the SMF repository.
    # nscfg import -f svc:/system/name-service/switch:default
  4. Refresh the service for the name service switch.
    # svcadm refresh name-service/switch