Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ makedbm(8) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

yppasswd



MAKEDBM(8,C)                AIX Commands Reference                 MAKEDBM(8,C)



-------------------------------------------------------------------------------
makedbm



PURPOSE

Makes an NIS dbm file.

SYNTAX


                   +----------+   +--------+
/etc/yp/makedbm ---|          |---| +----+ |---|
                   +- infile -+   +-| -l |-+
                                   ^| -o ||
                                   || -d ||
                                   || -m ||
                                   || -u ||
                                   |+----+|
                                   +------+


Note:  This command does not have MBCS support.

DESCRIPTION

Note:  Do not run the makedbm command on a client machine.  The command should
       be used only on servers.

The makedbm command takes infile and converts it to a pair of files in dbm
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 \, the
data for that record is continued on to the next line.  It is left for the
clients of the NIS to interpret #; the makedbm command does not itself treat it
as a comment character.  The infile can be - (minus), in which case standard
input is read.

The makedbm command is meant to be used in generating dbm files for the NIS,
and it generates a special entry with the key yp_last_modified, which is the
date of infile (or the current time, if infile is -).

FLAGS

-i      Create a special entry with the key yp_input_file.

-o      Create a special entry with the key yp_output_name.

-d      Create a special entry with the key yp_domain_name.





Processed November 8, 1990       MAKEDBM(8,C)                                 1





MAKEDBM(8,C)                AIX Commands Reference                 MAKEDBM(8,C)



-m      Create a special entry with the key yp_master_name.  If no master host
        name is specified, yp_master_name is sent 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 key value form used by the makedbm command.  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 the
makedbm command to make the NIS file passwd.byname.  That is, the key is a user
name, and the value is the remaining line in the /etc/passwd file.

RELATED INFORMATION

See the following command:  "yppasswd."


































Processed November 8, 1990       MAKEDBM(8,C)                                 2



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