Linux 密码复杂度设置

vi /etc/pam.d/common-password

#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Password-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define  the services to be
# used to change user passwords.
#
password        requisite       pam_pwcheck.so  nullok cracklib
password        required        pam_unix2.so    use_authtok nullok


password requisite pam_cracklib.so minlen=8
password required pam_unix.so md5 shadow remember=5 use_authtok

 

posted @ 2017-01-06 16:27  当年亦如是  阅读(338)  评论(0)    收藏  举报