- 论坛徽章:
- 93
|
回复 88# waker
原来如此,见多识广才能做事效率啊,不然自己整得多麻烦。
- File: *manpages*, Node: mkpasswd, Up: (dir)
- MKPASSWD(1) MKPASSWD(1)
- NAME
- mkpasswd - generate new password, optionally apply it to a user
- SYNOPSIS
- mkpasswd [ args ] [ user ]
- INTRODUCTION
- mkpasswd generates passwords and can apply them automatically to users.
- mkpasswd is based on the code from Chapter 23 of the O’Reilly book
- "Exploring Expect".
- USAGE
- With no arguments, mkpasswd returns a new password.
- mkpasswd
- With a user name, mkpasswd assigns a new password to the user.
- mkpasswd don
- The passwords are randomly generated according to the flags below.
- FLAGS
- The -l flag defines the length of the password. The default is 9. The
- following example creates a 20 character password.
- mkpasswd -l 20
- The -d flag defines the minimum number of digits that must be in
复制代码 |
|