OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [example/] [mkpasswd.man] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.