xref: /original-bsd/old/mkpasswd/mkpasswd.8 (revision ca3b5b26)
Copyright (c) 1985 The Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)mkpasswd.8 6.5 (Berkeley) 02/22/89

MKPASSWD 8 ""
C 6
NAME
mkpasswd - generate hashed password table
SYNOPSIS
mkpasswd [ -p ] passwdfile
DESCRIPTION
Mkpasswd is used to generated the hashed password database used by the password library routines (see getpwent (3)).

The file passwdfile must be in password file format (see passwd (5)). Mkpasswd generates database files named ``passwdfile.pag'' and ``passwdfile.dir'' (see ndbm (3)). Data subsequently taken from the database files differ from passwdfile in one respect. Rather than storing the encrypted password in the database, mkpasswd stores the offset of the encrypted password in passwdfile .

Mkpasswd exits zero on success, non-zero on failure.

The -p option causes mkpasswd to create ``passwdfile.orig'', a password file in the standard Version 7 format.

SEE ALSO
chpass(1), passwd(1), getpwent(3), ndbm(3), passwd(5), vipw(8)