Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / man / man1 / mkpasswd.1
CommitLineData
920dae64
AT
1.TH MKPASSWD 1 "22 August 1994"
2.SH NAME
3mkpasswd \- generate new password, optionally apply it to a user
4.SH SYNOPSIS
5.B mkpasswd
6.I
7[
8.I args
9]
10[
11.I user
12]
13.SH INTRODUCTION
14.B mkpasswd
15generates passwords and can apply them automatically to users.
16mkpasswd is based on the code from Chapter 23 of the O'Reilly book
17"Exploring Expect".
18.SH USAGE
19With no arguments,
20.B mkpasswd
21returns a new password.
22
23 mkpasswd
24
25With a user name,
26.B mkpasswd
27assigns a new password to the user.
28
29 mkpasswd don
30
31The passwords are randomly generated according to the flags below.
32
33.SH FLAGS
34The
35.B \-l
36flag defines the length of the password. The default is 9.
37The following example creates a 20 character password.
38
39 mkpasswd -l 20
40
41The
42.B \-d
43flag defines the minimum number of digits that must be in the password.
44The default is 2. The following example creates a password with at least
453 digits.
46
47 mkpasswd -d 3
48
49The
50.B \-c
51flag defines the minimum number of lowercase alphabetic characters that must be in the password.
52The default is 2.
53
54The
55.B \-C
56flag defines the minimum number of uppercase alphabetic characters that must be in the password.
57The default is 2.
58
59The
60.B \-s
61flag defines the minimum number of special characters that must be in the password.
62The default is 1.
63
64The
65.B \-p
66flag names a program to set the password.
67By default, /etc/yppasswd is used if present, otherwise /bin/passwd is used.
68
69The
70.B \-2
71flag causes characters to be chosen so that they alternate between
72right and left hands (qwerty-style), making it harder for anyone
73watching passwords being entered. This can also make it easier for
74a password-guessing program.
75
76The
77.B \-v
78flag causes the password-setting interaction to be visible.
79By default, it is suppressed.
80
81.SH EXAMPLE
82The following example creates a 15-character password
83that contains at least 3 digits and 5 uppercase characters.
84
85 mkpasswd -l 15 -d 3 -C 5
86
87.SH SEE ALSO
88.I
89"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs"
90\fRby Don Libes,
91O'Reilly and Associates, January 1995.
92.SH AUTHOR
93Don Libes, National Institute of Standards and Technology
94
95.B mkpasswd
96is in the public domain.
97NIST and I would
98appreciate credit if this program or parts of it are used.
99
100