DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring the Network Information Service (NIS)

Creating new maps

To create a new NIS map:

  1. On the master server, enter:

    cd /etc/yp

  2. Create an ASCII file containing the contents of the desired map. The ASCII file format must consist of key-value pairs with space separating the key from its value as in:

    key1 value1
    key2 value2
    key3 value3

  3. Create the NIS map for this file using the makedbm command. For an ASCII file called mymap.asc:

    ./makedbm mymap.asc domain_name/mymap

    The result is a map called /etc/yp/domain_name/mymap.

  4. Add the new map name to the YP_MAP_X_LATE file on all servers in the NIS domain.

  5. Create a new map2ascii routine and copy it to all servers on which you wish the new map to be converted to ASCII format after it is propagated. A map2ascii routine is required on any copy-only servers.

  6. Propagate the map to slave servers in the NIS domain using the yppush command. For the example map mymap, enter:

    yppush mymap

See also:


Next topic: Administering NIS maps
Previous topic: Modifying existing maps

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003