mkpasswd(8)mkpasswd(8)Namemkpasswd - generate hashed password table
/etc/mkpasswd [-uv] passwdfile
The command is used to generate the hashed password database used by
the library routines and
If the -u option is present the hashed files will not be built unless
they already exist. In any case, the hashed files will not be built if
the time of last modification of the passwdfile is less recent than
that of an existing hashed files.
If the -v option is supplied, each entry will be listed as it is added.
The file passwdfile is usually and must be in the format of The command
will generate database files named passwdfile.pag and passwdfile.dir.
The command will exit with a non-zero exit code if any errors are
detected. Otherwise it will print the number of entries processed and
the length of the longest entry.
The presence of the hashed files is optional. They are not required for
correct operation of or but will improve their performance on systems
with moderate to large sized files.
The data base is already up to date.
If the specified file has been modified less recently than the hashed
Database not created.
When used with the -u option and the database does not already exist.
passwdfile.dir Database filename
passwdfile.pag Database filename
See Alsogetpwent(3), passwd(5), vipw(8)mkpasswd(8)