Networking Guide
Chapter 7, Configuring the Network Information Service (NIS)

Modifying map names and aliases

Modifying map names and aliases

Because of file naming conventions, names of existing NIS maps may conflict with names you want to use for another map or another file. To avoid conflicts, you can assign an alias. If this does not work, use a different name for the newer file to avoid having to change the name of an existing map.

If you must change the name of an existing map, follow this procedure:

  1. Create and propagate a map with the new name.

  2. Add the new name to the YP_MAP_X_LATE file on all NIS servers.

  3. If you are not going to use the old name for a different NIS map, remove the old name from the YP_MAP_X_LATE file on all NIS servers and remove the old map from all NIS servers.

    If you are going to use the old name for a different NIS map, remove the old map from the master server; create and propagate the new map, using the old name. You will not need to add the name to the YP_MAP_X_LATE files on all NIS servers because it is already there.


NOTE: If you change a map name or map alias, you must change it in all YP_MAP_X_LATE files.

See also: