CentOSパスワード複雑度設定
953 ワード
Centos7 :
Linux :pam_passwdqc pam_pwquality 。 pam_passwdqc /etc/login.defs,pam_pwquality /etc/security/pwquality.conf
1)、/etc/security/pwquality.conf :
retry=N: / , ;
Difok=N: 。 1/2 , ;
minlen=N: ;
dcredit=N: ;
ucredit=N: ;
lcredit=N: ;
ocredit=N: ( 、 );
【 =-1 , 】
2)、/etc/login.defs :
PASS_MAX_DAYS 99999 , 99999:
PASS_MIN_DAYS 0 ,0 , 0
PASS_MIN_LEN 5 , pam_cracklib module,
PASS_WARN_AGE 7
3)、
vim /etc/security/pwquality.conf
minlen = 8
minclass = 1
maxrepeat = 0
maxclassrepeat = 4
lcredit = -1
ucredit = -1
dcredit = -1
ocredit = -1
difok=5
vim /etc/login.defs
PASS_MAX_DAYS 90
PASS_MIN_LEN 12
PASS_MIN_DAYS 7
PASS_WARN_AGE 30