1 .TH MKPASSWD 1 "22 August 1994"
3 mkpasswd \- generate new password, optionally apply it to a user
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
21 returns a new password.
27 assigns a new password to the user.
31 The passwords are randomly generated according to the flags below.
36 flag defines the length of the password. The default is 9.
37 The following example creates a 20 character password.
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
51 flag defines the minimum number of lowercase alphabetic characters that must be in the password.
56 flag defines the minimum number of uppercase alphabetic characters that must be in the password.
61 flag defines the minimum number of special characters that must be in the password.
66 flag names a program to set the password.
67 By default, /etc/yppasswd is used if present, otherwise /bin/passwd is used.
71 flag causes characters to be chosen so that they alternate between
72 right and left hands (qwerty-style), making it harder for anyone
73 watching passwords being entered. This can also make it easier for
74 a password-guessing program.
78 flag causes the password-setting interaction to be visible.
79 By default, it is suppressed.
82 The following example creates a 15-character password
83 that contains at least 3 digits and 5 uppercase characters.
85 mkpasswd -l 15 -d 3 -C 5
89 "Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs"
91 O'Reilly and Associates, January 1995.
93 Don Libes, National Institute of Standards and Technology
96 is in the public domain.
98 appreciate credit if this program or parts of it are used.