System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

How to Add DNS Compatibility and +/- Syntax

This section describes how to use the +/- syntax when you use either NIS or NIS+ as your master naming service.

  1. Become superuser.

  2. Open the /etc/nsswitch.conf file.

  3. Change the passwd and groups sources to compat.

    • For use with NIS, enter:


      passwd: compat
      group: compat
    • For NIS+, enter:


      passwd: compat
      passwd_compat: nisplus
      group: compat
      group_compat: nisplus

    This provides the same syntax as in the Solaris 1.x release. It looks up /etc files and NIS maps as indicated by the +/- entries in the files.

  4. Add -+ or -+ netgroup to the /etc/passwd, /etc/shadow, and /etc/group files.


    Note –

    You must add the -+ or -+ netgroup entries to /etc/shadow and /etc/passwd. Otherwise, you can not log in.


  5. Save the file and reboot the system.

    Some library routines do not check the nsswitch.conf file for updates. Therefore, you must reboot the machine to make sure those routines get the updated information.