DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Advanced NIS administration

Updating maps built from existing ASCII files

Assume that an ASCII file named /var/yp/mymap.asc was created with an editor or a shell script on the NIS master. You want to create an NIS map from this file, and locate it in a subdirectory named home_domain. To do this, enter the following on the master NIS server:

cd /var/yp
/usr/sbin/makedbm mymap.asc home_domain/mymap

The mymap map now exists in the directory home_domain.

Adding entries to mymap is simple. Modify the ASCII file mymap.asc (if you modify the actual dbm files without modifying the corresponding ASCII file, the modifications are lost) and enter the following command:

/usr/sbin/makedbm mymap.asc home_domain/mymap

When you finish updating the map, propagate it to the slave servers, as described in ``Propagating an NIS map''.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004