Berkeley copyright
[unix-history] / usr / src / old / mkpasswd / mkpasswd.8
CommitLineData
55270cae
KM
1.\" Copyright (c) 1985 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
4dea0be1 5.\" @(#)mkpasswd.8 6.3 (Berkeley) %G%
55270cae
KM
6.\"
7.TH MKPASSWD 8 ""
8.UC 6
9.SH NAME
56e2d6be 10mkpasswd \- generate hashed password table
55270cae
KM
11.SH SYNOPSIS
12.B /etc/mkpasswd
13[
14.B \-v
15]
16passwdfile
17.SH DESCRIPTION
18.I Mkpasswd
19is used to generated the hashed password database used by the
20library routines
21.B getpwnam()
22and
23.BR getpwuid() .
24If the
25.B \-v
26option is supplied, each entry will be listed as it is added.
27The file
28.I passwdfile
29is usually /etc/ptmp (invoked by vipw(8)), and in any case
30must be in the format of /etc/passwd (see passwd(5)).
31.I Mkpasswd
32will generate database files named
33.I passwdfile.pag
34and
35.I passwdfile.dir.
36.I Mkpasswd
37will exit with a non-zero exit code if any errors are detected.
38.SH FILES
39.ta \w'passwdfile.dir 'u
40\fIpasswdfile\fR.pag - database filenames
41.br
42\fIpasswdfile\fR.dir
43.SH SEE ALSO
44getpwent(3), vipw(8), passwd(5)