mkpwdbm(8)

NAME
mkpwdbm - Create DBM database for pam_dbm

SYNOPSIS
mkpwdbm [-mvVq] [-F delimiters] dbmfile

DESCRIPTION
mkpwdbm is a tool for creating a DBM database for use with pam_dbm(5). It reads data from standard input and adds entries to the DBM file specified by dbmfile. mkpwdbm expects its input to be a set of zero or more records, one per line. Each record consists of two or more character-delimited fields. The first two fields must be the login and encrypted password. Any additional fields will be ignored. The default field delimiter is ":" (but see the -F option below). This allows mkpwdbm to be used to import data from a normal Unix /etc/shadow file.

OPTIONS
mkpwdbm supports the following options:

-F delimiters
    Use the characters specified in the string delimiters as the field delimiters when reading records from stdin. If not specified, the default delimiter string is ":". Note that mkpwdbm uses strsep(3) to split the input fields in each record. This means that, even if multiple delimiter characters are specified, the input must contain only one of the delimiter characters between each field. If multiple delimiter characters exist between fields, mkpwdbm will interpret that as a zero-length field between each delimiter character.

-m  Merge mode. This mode is used to merge the input into a pre-existing DBM file. If an entry is read from stdin which already exists in the DBM file, the new entry is used to overwrite the existing entry.

-V  Print version and exit.

-v  Increase verbosity.

-q  Quiet mode. No output is printed unless an error occurs.

EXAMPLE
To create a DBM file with the same passwords as the normal systems passwords, run this command:

    mkpwdbm /etc/passwd.imap < /etc/shadow

SEE ALSO
pam(3), pam.conf(4), pam_dbm(5)

AUTHOR
Mark D. Roth <roth@uiuc.edu>