在etc目录下pam.d目录下,存在system-auth文件
先将文件备份下,然后在system-auth中插入下面行
password requisite pam_pwquality.so
try_first_pass local_users_only retry=3
authtok_type= minlen=8
lcredit=-1
ucredit=-1
dcredit=-1
ocredit=-1
修改完只会对后续的密码有约束作用
在etc目录下pam.d目录下,存在system-auth文件
先将文件备份下,然后在system-auth中插入下面行
password requisite pam_pwquality.so
try_first_pass local_users_only retry=3
authtok_type= minlen=8
lcredit=-1
ucredit=-1
dcredit=-1
ocredit=-1
修改完只会对后续的密码有约束作用