Commit | Line | Data |
---|---|---|
865ae696 KB |
1 | .\" Copyright (c) 1985 The Regents of the University of California. |
2 | .\" All rights reserved. | |
55270cae | 3 | .\" |
865ae696 KB |
4 | .\" Redistribution and use in source and binary forms are permitted |
5 | .\" provided that the above copyright notice and this paragraph are | |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
15 | .\" | |
16 | .\" @(#)mkpasswd.8 6.4 (Berkeley) %G% | |
55270cae KM |
17 | .\" |
18 | .TH MKPASSWD 8 "" | |
19 | .UC 6 | |
20 | .SH NAME | |
56e2d6be | 21 | mkpasswd \- generate hashed password table |
55270cae KM |
22 | .SH SYNOPSIS |
23 | .B /etc/mkpasswd | |
24 | [ | |
25 | .B \-v | |
26 | ] | |
27 | passwdfile | |
28 | .SH DESCRIPTION | |
29 | .I Mkpasswd | |
30 | is used to generated the hashed password database used by the | |
31 | library routines | |
32 | .B getpwnam() | |
33 | and | |
34 | .BR getpwuid() . | |
35 | If the | |
36 | .B \-v | |
37 | option is supplied, each entry will be listed as it is added. | |
38 | The file | |
39 | .I passwdfile | |
40 | is usually /etc/ptmp (invoked by vipw(8)), and in any case | |
41 | must be in the format of /etc/passwd (see passwd(5)). | |
42 | .I Mkpasswd | |
43 | will generate database files named | |
44 | .I passwdfile.pag | |
45 | and | |
46 | .I passwdfile.dir. | |
47 | .I Mkpasswd | |
48 | will exit with a non-zero exit code if any errors are detected. | |
49 | .SH FILES | |
50 | .ta \w'passwdfile.dir 'u | |
51 | \fIpasswdfile\fR.pag - database filenames | |
52 | .br | |
53 | \fIpasswdfile\fR.dir | |
54 | .SH SEE ALSO | |
55 | getpwent(3), vipw(8), passwd(5) |