Linux-pam_cracklib.so选项详解

pam_cracklib.so位于/etc/pam.d/system-auth中

pam_cracklib.so 相关的 options

debug
This option makes the module write information to syslog(3) indicating the behavior of the module
(this option does not write password information to the log file).

authtok_type=XXX
The default action is for the module to use the following prompts when requesting passwords:
"New UNIX password: " and "Retype UNIX password: ".
The example word UNIX can be replaced with this option, by default it is empty.

retry=N
Prompt user at most N times before returning with error. The default is 1.

difok=N
This argument will change the default of 5 for the number of characters in the new password
that must not be present in the old password. In addition, if 1/2 of the characters in the new password are different
then the new password will be accepted anyway.

difignore=N
How many characters should the password have before difok will be ignored. The default is 23.

minlen=N
The minimum acceptable size for the new password (plus one if credits are not disabled which is the default).
In addition to the number of characters in the new password, credit (of +1 in length) is given for each different
kind of character (other, upper, lower and digit). The default for this parameter is 9 which is good for a old style
UNIX password all of the same type of character but may be too low to exploit the added security of a md5 system.
Note that there is a pair of length limits in Cracklib itself, a "way too short" limit of 4 which is hard coded in and
a defined limit (6) that will be checked without reference to minlen. If you want to allow passwords as short as 5 characters
you should not use this module.

dcredit=N
(N >= 0) This is the maximum credit for having digits in the new password. If you have less than or N digits,
each digit will count +1 towards meeting the current minlen value. The default for dcredit is 1 which is the
recommended value for minlen less than 10.
(N < 0) This is the minimum number of digits that must be met for a new password.

ucredit=N
(N >= 0) This is the maximum credit for having upper case letters in the new password.
If you have less than or N upper case letters each letter will count +1 towards meeting the current minlen value.
The default for ucredit is 1 which is the recommended value for minlen less than 10.
(N < 0) This is the minimum number of upper case letters that must be met for a new password.

lcredit=N
(N >= 0) This is the maximum credit for having lower case letters in the new password.
If you have less than or N lower case letters, each letter will count +1 towards meeting the current minlen value.
The default for lcredit is 1 which is the recommended value for minlen less than 10.
(N < 0) This is the minimum number of lower case letters that must be met for a new password.

ocredit=N
(N >= 0) This is the maximum credit for having other characters in the new password.
If you have less than or N other characters, each character will count +1 towards meeting the current minlen value.
The default for ocredit is 1 which is the recommended value for minlen less than 10.
(N < 0) This is the minimum number of other characters that must be met for a new password.

minclass=N
The minimum number of required classes of characters for the new password. The default number is zero.
The four classes are digits, upper and lower letters and other characters. The difference to the credit check is that
a specific class if of characters is not required. Instead N out of four of the classes are required.

maxrepeat=N
Reject passwords which contain more than N same consecutive characters.
The default is 0 which means that this check is disabled.

reject_username
Check whether the name of the user in straight or reversed form is contained in the new password.
If it is found the new password is rejected.

use_authtok
This argument is used to force the module to not prompt the user for a new password
but use the one provided by the previously stacked password module.

dictpath=/path/to/dict
Path to the cracklib dictionaries.

时间: 2024-12-19 07:52:23

Linux-pam_cracklib.so选项详解的相关文章

linux ./configure 的参数详解

转载自http://blog.csdn.net/zjt289198457/article/details/6918656 linux ./configure 的参数详解   ./configure 该脚本将运行一些测试来猜测一些系统相关的变量并检测你的操作   系统的特殊设置,并且最后在制做树中创建一些文件以记录它找到了什么. 缺省设置将制作服务器和应用程序,还有所有只需要C编译器的客户端程序和接口. 缺省时所有文件都将安装到   /usr/local/pgsql.         你可以通过给

(转)Linux下PS命令详解

(转)Linux下PS命令详解 整理自:http://blog.chinaunix.net/space.php?uid=20564848&do=blog&id=74654 要对系统中进程进行监测控制,查看状态,内存,CPU的使用情况,使用命令:/bin/ps (1) ps :是显示瞬间进程的状态,并不动态连续: (2) top:如果想对进程运行时间监控,应该用 top 命令: (3) kill 用于杀死进程或者给进程发送信号: (4) 查看文章最后的man手册,可以查看ps的每项输出的含义

Linux下chkconfig命令详解

Linux下chkconfig命令详解 chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息.谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接. 使用语法:chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level <等级代号>][系统服务][on/off/reset] chkconfig在没有参数运行时,显示用法.如果加上服务名,那么就检查这个服务是否在当前运行级启动.如果是,返

转载的 Linux下chkconfig命令详解

Linux下chkconfig命令详解 chkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息.谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接. 使用语法: chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level <等级代号>][系统服务][on/off/reset] chkconfig 在没有参数运行时,显示用法.如果加上服务名,那么就检查这个服务是否在当前运行级启动.如果是

Linux中pam认证详解(下)

Linux中pam认证详解(下) 在上一篇中详细的介绍了pam的介绍.pam认证原理.pam认证构成以及pam验证控制类型,下面向大家详细介绍一下常用的pam服务模块,以及pam认证的应用. 一.常用的pam服务模块 下面是Linux提供的PAM模块列表(只是其中一部分),这其中包含模块文件.模块功能描述和相关配置文件,具体如下: pam_access 提供logdaemon风格登录控制 /etc/security/access.conf pam_chroot 提供类似chroot命令的功能 p

PPTP服务器配置选项详解

PPTP服务器配置选项详解 导读 PPTP服务器配置文件的格式与其它许多Unix程序相似,每一行包含一项配置内容,以配置选项名称开始,后面紧跟参数值或者关键字,它们之间用空格分隔.在读取配置文件时,pptpd进程将忽略空行和每一行"#"后面的注释.PPTP服务器的配置比较简单,总共只有12个配置选项,下面对这些选项进行详细的说明: 指定选项文件 option option-file 功能:指定一个选项文件,里面内容作为pptpd进程启动时的命令行参数.与执行pptpd命令时使用&quo

linux下scp命令详解

scp是 secure copy的缩写, scp是linux系统下基于ssh登陆进行安全的远程文件拷贝命令.linux的scp命令可以在linux服务器之间复制文件和目录. scp命令的用处: scp在网络上不同的主机之间复制文件,它使用ssh安全协议传输数据,具有和ssh一样的验证机制,从而安全的远程拷贝文件. scp命令基本格式: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o s

curl常用选项详解

curl常用选项详解 作者:尹正杰 又是下班的时间了,让我们一起来学习一下今天的Linux命令吧~我一半只把自己常用的参数列出来,其他的有但是我们几乎不常用,大家是 可以有兴趣的话可以自己参考哟~嘻嘻!在Linux中curl是一个利用URL规则在命令行下工作的文件传输工具,可以说是一款很强大的http命令 行工具.它支持文件的上传和下载,是综合传输工具,但按传统,习惯称url为下载工具. 1.用curl抓取网页数据

Linux之htop命令详解

Linux之htop命令详解 一.htop简介 htop 是Linux系统中的一个互动的进程查看器,一个文本模式的应用程序(在控制台或者X终端中),需要ncurses. 与Linux传统的top相比,htop更加人性化.它可让用户交互式操作,支持颜色主题,可横向或纵向滚动浏览进程列表,并支持鼠标操作. 与top相比,htop有以下优点: 可以横向或纵向滚动浏览进程列表,以便看到所有的进程和完整的命令行. 在启动上,比top 更快. 杀进程时不需要输入进程号. htop 支持鼠标操作. htop