MKPASSWD(8) — Unix Programmer’s Manual
NAME
mkpasswd − generate hashed password table
SYNOPSIS
/etc/mkpasswd [ options ] passwdfile
DESCRIPTION
Mkpasswd generates the hashed password database used by the library routines getpwnam() and getpwuid(). This database is stored in the files passwd.pag and passwd.dir.
Usually, the passwdfile you invoke on the command line will be /etc/ptmp (the file invoked by the vipw(8) command). In any case, the passwdfile must be in the format of /etc/passwd. (See the passwd(5) man page for a description of this format.)
Mkpasswd exits with a non-zero exit code if it detects errors.
OPTIONS
−v Lists each entry as it is added.
FILES
passwdfile.pagdatabase file
passwdfile.dirdatabase file
SEE ALSO
getpwent(3), vipw(8), passwd(5)
6 BSD — November 23, 1987