mkpasswd 命令
来源:互联网 发布:dz灰鹭数据 编辑:程序博客网 时间:2024/06/06 05:07
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 the password. The default is 2. The following example creates a password with at least 3 digits.
mkpasswd -d 3
The -c flag defines the minimum number of lowercase alphabetic characters that must be in the password. The default is 2.
The -C flag defines the minimum number of uppercase alphabetic characters that must be in the password. The default is 2.
The -s flag defines the minimum number of special characters that must be in the password. The default is 1.
The -p flag names a program to set the password. By default, /etc/yppasswd is used if present, otherwise /bin/passwd is used.
The -2 flag causes characters to be chosen so that they alternate between right and left hands (qwerty-style), making it harder for anyone watching passwords being entered. This can also make it easier for a password-guessing program.
The -v flag causes the password-setting interaction to be visible. By default, it is suppressed.
Example
The following example creates a 15-character password that contains at least 3 digits and 5 uppercase characters.
mkpasswd -l 15 -d 3 -C 5
See Also
"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs" by Don Libes, O'Reilly and Associates, January 1995.
Author
Don Libes, National Institute of Standards and Technology
mkpasswd is in the public domain. NIST and I would appreciate credit if this program or parts of it are used.
注意:如果没有mkpasswd这个文件,可以通过安装expect来获得。
from:http://linux.die.net/man/1/mkpasswd
相关文章:http://hi.baidu.com/afantihome/blog/item/db2be258b167e1d09c820486.html
- mkpasswd 命令
- L12 usermod命令,用户密码管理,mkpasswd命令
- 用户密码管理、mkpasswd命令与usermod命令
- usermod命令,mkpasswd命令及密码管理
- usermod命令、用户密码管理、mkpasswd命令
- linux学习第十二篇:usermod命令,用户密码管理,mkpasswd命令
- usermod命令、passwd命令、mkpasswd命令用户组及密码设置-3.4-3.6
- 三周第二次课 2017.10.31 usermod命令、用户密码管理、mkpasswd命令
- mkpasswd 的使用
- usermod,用户密码管理,mkpasswd
- linux随机密码生成工具mkpasswd
- linux随机密码生成工具mkpasswd
- linux随机密码生成工具mkpasswd安装与使用教程
- 命令
- 命令
- 命令
- 命令
- 命令
- 使用LTP套件对Linux系统进行压力测试
- Topology,Calcuation和Management(刘西拉讲座听后感3)
- JS 转换数字/日期大全
- 无法查看MSN聊天记录 总弹出下载.xml文件的对话框
- BCDautofix v1.2.1
- mkpasswd 命令
- Altera 的GPP LTE 基站解决方案
- reuse_alv_grid_display 工具条增强
- 杭电ACM 1000-Java
- Silverlight的未来【转于博客园】
- LightSpeed 学习笔记——LightSpeed总览(2)
- 最终飞秋被封杀
- Oracle rac 10g for linux vmware安装笔记
- 并查集的高级应用POJ_1984