Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ makedbm(1M) — DG/UX 5.4.2A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

named(1M)

yppasswd(1)

ndbm(3C)



makedbm(1M)                       ONC 5.4.2                      makedbm(1M)


NAME
       makedbm - make a Network Information Service dbm file

SYNOPSIS
       makedbm [-b] [-s] [ -i ypinputfile ] [ -o ypoutputname ]
       [ -d ypdomainname ] [ -m ypmastername ] infile outfile

       makedbm [ -u dbmfilename ]

DESCRIPTION
       makedbm takes infile and converts it to a pair of files in ndbm(3C)
       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, and the rest of the line is the
       data.  If a line ends with `\', then the data for that record is
       continued on to the next line.  It is left for the clients of the
       Network Information Service to interpret #; makedbm does not itself
       treat it as a comment character.  infile can be `-', in which case
       the standard input is read.

       makedbm is meant to be used in generating dbm files for the Network
       Information Service, and it generates a special entry with the key
       yplastmodified, which is the date of infile (or the current time,
       if infile is `-').

OPTIONS
       -b     Interdomain.  Propagate a map to all servers using the
              interdomain name server named(1M).

       -s     Secure map.  Accept connections from secure NIS networks only.

       -i     Create a special entry with the key ypinputfile.

       -o     Create a special entry with the key ypoutputname.

       -d     Create a special entry with the key ypdomainname.

       -m     Create a special entry with the key ypmastername.  If no
              master host name is specified, ypmastername will be set to
              the local host name.

       -u     Undo a dbm file.  That is, print out a dbm file one entry per
              line, with a single space separating keys from values.

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,

              #!/bin/awk -f
              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 file



Licensed material--property of copyright holder(s)                         1




makedbm(1M)                       ONC 5.4.2                      makedbm(1M)


       passwd.byname.  That is, the key is a username, and the value is the
       entire line in the /etc/passwd file.

SEE ALSO
       named(1M), yppasswd(1), ndbm(3C).




















































Licensed material--property of copyright holder(s)                         2


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026