4.4BSD/usr/src/old/mkpasswd/mkpasswd.8

Compare this file to the similar file:
Show the results in this format:

.\" 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: (1) source distributions retain this entire copyright notice and
.\" comment, and (2) distributions including binaries display the following
.\" acknowledgement:  ``This product includes software developed by the
.\" University of California, Berkeley and its contributors'' in the
.\" documentation or other materials provided with the distribution and in
.\" all advertising materials mentioning features or use of this software.
.\" Neither the name of the University nor the names of its contributors may
.\" 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
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"	@(#)mkpasswd.8	6.7 (Berkeley) 3/8/91
.\"
.TH MKPASSWD 8 "March 8, 1991"
.UC 6
.SH NAME
mkpasswd \- generate hashed password table
.SH SYNOPSIS
.B mkpasswd
[
.B \-p
] passwdfile
.SH DESCRIPTION
.ft B
Mkpasswd has been obsoleted by pwd_mkdb(8).
.ft R
.PP
.I Mkpasswd
is used to generated the hashed password database used by the
password library routines (see
.IR getpwent (3)).
.PP
The file
.I passwdfile
must be in password file format (see
.IR passwd (5)).
.I Mkpasswd
generates database files named ``passwdfile.pag'' and
``passwdfile.dir'' (see
.IR ndbm (3)).
Data subsequently taken from the database files differ from
.I passwdfile
in one respect.
Rather than storing the encrypted password in the database,
.I mkpasswd
stores the offset of the encrypted password in
.IR passwdfile .
.PP
.I Mkpasswd
exits zero on success, non-zero on failure.
.PP
The
.I \-p
option causes
.I mkpasswd
to create ``passwdfile.orig'', a password file in the
standard Version 7 format.
.SH SEE ALSO
chpass(1), passwd(1), getpwent(3), ndbm(3), passwd(5), vipw(8)