Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

makedbm(8) [netbsd man page]

MAKEDBM(8)						    BSD System Manager's Manual 						MAKEDBM(8)

NAME
makedbm -- create a NIS database SYNOPSIS
makedbm -u dbfile makedbm [-bls] [-d yp_domain_name] [-i yp_input_file] [-m yp_master_name] [-o yp_output_file] infile outfile DESCRIPTION
makedbm is the utility in NIS that creates the db(3) database file containing the NIS map. infile is the pathname of the source file (where ``-'' is standard input). Each line consists of the key and the value, with a space sepa- rating the items. Blank lines are ignored, and a ``#'' is a comment character and indicates that the rest of the line should be ignored. outfile is the pathname of the generated database. The options are as follows: -b Interdomain. Include an entry in the database informing a NIS server to use DNS to get information about unknown hosts. This option will only have effect on the maps hosts.byname and hosts.byaddr. -l Lowercase. Convert all keys to lower case before adding them to the NIS database. -s Secure map. Include an entry in the database informing ypxfr(8) and ypserv(8) that the NIS map is going to be handled as secure (i.e., not served to clients that don't connect from a reserved port). -d yp_domain_name Include an entry in the map with 'YP_DOMAIN_NAME' as the key and yp_domain_name as the value. -i yp_input_file Include an entry in the map with 'YP_INPUT_FILE' as the key and yp_input_file as the value. -m yp_master_name Include an entry in the map with 'YP_MASTER_NAME' as the key and yp_master_name as the value. -o yp_output_file Include an entry in the map with 'YP_OUTPUT_FILE' as the key and yp_output_file as the value. -u dbfile Dump the contents of dbfile to standard output, in a format suitable to be passed back into makedbm. dbfile is the pathname to the database. SEE ALSO
db(3), nis(8), ypserv(8), ypxfr(8) AUTHORS
Mats O Jansson <moj@stacken.kth.se> BSD
February 26, 2005 BSD

Check Out this Related Man Page

makedbm(1M)						  System Administration Commands					       makedbm(1M)

NAME
makedbm - make a dbm file, or get a text file from a dbm file SYNOPSIS
makedbm [-b] [-l] [-s] [-E] [-i yp_input_file] [-o yp_output_name] [-d yp_domain_name] [-m yp_master_name] [-S delimiter] [-D num- ber_of_delimiters] infile outfile makedbm [-u dbmfilename] DESCRIPTION
The makedbm utility takes the infile and converts it to a pair of files in ndbm format (see ndbm(3C)), namely outfile.pag and outfile.dir. Each line of the input file is converted to a single dbm record. All characters up to the first TAB or SPACE form the key, and the rest of the line is the data. If a line ends with `' (backslash), the data for that record is continued on to the next line. makedbm does not treat `#' (pound-sign) as a special character. Because makedbm is mainly used in generating dbm files for the NIS name service, it generates a special entry with the key yp_last_modi- fied, which is the date of infile (or the current time, if infile is `-'). The entries that have keys with the prefix yp_ are interpreted by NIS server utilities. OPTIONS
The following options are supported: -b Insert the YP_INTERDOMAIN into the output. This key causes ypserv(1M) to use DNS for host name and address lookups for hosts not found in the maps. -d yp_domain_name Create a special entry with the key yp_domain_name. -D number_of delimiters Specify number_of_delimiters to skip before forming the key. -E Delimiters are escaped. -i yp_input_file Create a special entry with the key yp_input_file. -l Lower case. Convert the keys of the given map to lower case, so that, for example, host name matches succeed inde- pendent of upper or lower case distinctions. -m yp_master_name Create a special entry with the key yp_master_name. If no master host name is specified, yp_master_name is set to the local host name. -o yp_output_name Create a special entry with the key yp_output_name. -s Secure map. Accept connections from secure NIS networks only. -S delimiter Specify the delimiter to use instead of the default delimiter for forming the key. -u dbmfilename Undo a dbm file. Prints out the file in text format, one entry per line, with a single space separating keys from values. OPERANDS
The following operands are supported: infile Input file for makedbm. If infile is `-' (dash), the standard input is read. outfile One of two output files in ndbm format: outfile.pag and outfile.dir. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
ypserv(1M), ndbm(3C), attributes(5) SunOS 5.10 17 Aug 1999 makedbm(1M)
Man Page