Solaris Naming Administration Guide

Ending Use of Server Preferences

You can stop using server-use customization and revert to the obtaining NIS+ information as described in "Default Client Search Behavior".

To end server preferences, run nisprefadm with the -x option.

Note -

When you end server preferences, clients do not stop using server preferences until the normal course of events as described "When Server Preferences Take Effect". You can force an immediate end to server preferences as described in"Putting Server Preferences Into Immediate Effect".

How to Eliminate Global Server Preferences

    Run nisprefadm with the -G and -x options.

#nisprefadm -G -x

This eliminates global server preferences.

How to Eliminate Local Server Preferences

Ending local preferences can mean one of three different things:

How to Switch From Local to Global Subnet Preferences

    Remove the machine's /var/nis/client_info file.

# rm /var/nis/client_info

This causes the machine to use the preferences specified for the machine's subnet in the domain's global client_info table.

How to Switch From Local to Machine-Specific Global Preferences

  1. Remove the machine's /var/nis/client_info file.

    # rm /var/nis/client_info
  2. Specify preferences for the machine in the global table using the -G and -C options.

    See "How to Set Global Preferences for an Individual Machine".

How to Stop a Machine From Using Any Server Preferences

  1. Remove the machine's /var/nis/client_info file.

    # rm /var/nis/client_info

    If the machine's domain does not have a global client_info table, this step is all you have to do. If the domain does have a client_info table, continue on to the next step.

  2. Create an empty /var/nis/client_info file.

    # touch /var/nis/client_info

    When a machine has its own /var/nis/client_info file, it does not use global preferences from any client_info table. If the machine has an empty /var/nis/client_info file, it will not use any preferences at all and will obtain NIS+ information, as described in "Default Client Search Behavior".