
makemap | 281
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-c Send a YPPROC_CLEAR signal to ypserv, causing it to clear
all cached entries.
-i file_name
Create a YP_INPUT_NAME key with the value file_name.
-l Convert keys of the given map to lowercase.
-m master_name
Specify the value of the YP_M*ER_NAME key. The default
value is the current hostname.
--no-limit-check
Don’t enforce NIS size limits for keys or data.
-o file_name
Create a YP_OUTPUT_NAME key with the value file_name.
-r Treat lines beginning with # as comments. Do not include
them in the datafile.
-s Add the key YP_SECURE, indicating that ypserv should
accept connections to the database only from secure NIS
networks.
-u filename
Undo a gdbm file: print out a dbm file, one entry per line,
with a single space separating keys from values.
Example
It’s easy to write shell scripts to convert standard files such as /etc/
passwd to the key-value form used by makedbm. For example, the
awk program:
BEGIN { FS =":";OFS = "\t";}
{ print $1, $0}
takes the /etc/passwd file and converts it to a form that can be read
by makedbm to make the NIS file passwd.byname. That is, the key
is a username and the value is the remaining line in the /etc/passwd
file.
makemap
makemap [options] type name
System administration command. Create database maps for use by
sendmail in keyed map lookups.