Linux-pam_cracklib.so Options Detailed

Source: Internet
Author: User

pam_cracklib.so located in/etc/pam.d/system-auth

pam_cracklib.so Related 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, the following prompts when requesting passwords:
" New Unix Password:" and "Retype Unix password:".
The example word UNIX can replaced with this option, by default it is empty.

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

difok=n
This argument would change the default of 5 for the number of characters in the new password
That must is present in the old password. In addition, if the characters in the new password is different
Then the new password'll be accepted anyway.

difignore=n
How many characters should the password has before Difok would be ignored. The default is.

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

dcredit=n
(N >= 0) This is the maximum credits for have digits in the new password. If you had less than or N digits,
Each digit would count +1 towards meeting the current Minlen value. The default for Dcredit are 1 which is the
recommended value for Minlen less than.
(N < 0) This was the minimum number of digits that must was met for a new password.

ucredit=n
(N >= 0) This is the maximum credits for have upper case letters in the new password.
If you had less than or N upper case letters each letter would count +1 towards meeting the current Minlen value.
The default for Ucredit is 1 which are the recommended value for Minlen less than.
(N < 0) This was the minimum number of upper case letters that must was met for a new password.

lcredit=n
(N >= 0) This is the maximum credits for have lower case letters in the new password.
If you had less than or N lower case letters, each letter would count +1 towards meeting the current Minlen VALUE.
The default for Lcredit is 1 which are the recommended value for Minlen less than.
(N < 0) This was the minimum number of lower case letters that must was met for a new password.

ocredit=n
(N >= 0) This is the maximum credits for have other characters in the new password.
If you had less than or N other characters, each character would count +1 towards meeting the current Minlen value.
The default for Ocredit is 1 which are the recommended value for Minlen less than.
(N < 0) This was the minimum number of other characters, that must was 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 is digits, upper and lower letters and other characters. The difference to the credit check are that
a specific class if of characters is not required. Instead N out of four of the classes is required.

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

Reject_username
Check whether the name of the user in straight or reversed form was contained in the new password.
If It is found, the new password is rejected.

Use_authtok
This argument was used to force the module to not prompt the user for a new password
But with the one provided by the previously stacked password module.

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

This article is from the "Boundless" blog, please make sure to keep this source http://7492110.blog.51cto.com/7482110/1709735

Linux-pam_cracklib.so Options Detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.