makedbm(NADM) 19 June 1992 makedbm(NADM) Name makedbm - make a Network Information Service (NIS) dbm file Syntax makedbm [ -b ] [ -l ] [ -s ] [ -i yp_inputfile ] [ -o yp_outputname ] [ -d yp_domainname ] [ -m yp_mastername ] infile outfile makedbm [ -u dbmfilename ] Description The makedbm command takes infile and converts it to a pair of files in ndbm(NS) format, 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: the rest of the line is the data. If a line ends with ``\'', then the data for that record is continued onto the next line. It is left for the clients of the Network Informa- tion Service (NIS) to interpret ``#''; the makedbm command itself does not treat ``#'' as a comment character. infile can be ``-'', in which case standard input is read. The makedbm command is intended for generating dbm files for the Network Information Service (NIS); makedbm generates a special entry with the key yp_lastmodified, which is the date of infile (or the current time, if infile is ``-''). Options -b interdomain. This option propagates a map to all servers using the interdomain name server, named(ADMN). -l lowercase. This option converts the keys of the given map to lower- case, so that host matches, for example, can work independently of upper- or lowercase distinctions. -s secure map. This option accepts connections from secure NIS net- works only. -i create a special entry with the key yp_inputfile -o create a special entry with the key yp_outputname -d create a special entry with the key yp_domainname -m create a special entry with the key yp_mastername. If no master host name is specified, yp_mastername will be set to the local host name. -u undo a dbm file. That is, print out a dbm file with one entry per line and with a single space separating each key from its value. Example It is 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 network information service (NIS) file passwd.byname. That is, the key is a username and the value is the remaining line in the /etc/passwd file. See also ndbm(NS), yppasswd(NC)