1、安装 libpam-cracklib
$ sudo apt-get install libpam-cracklib
2、编辑 /etc/pam.d/common-password
(例)
password requisite pam_cracklib.so retry=3 minlen=8 difok=3 dcredit=-1 lcredit=-1 ocredit=-1 ucredit=-1
开发笔记
1、安装 libpam-cracklib
$ sudo apt-get install libpam-cracklib
2、编辑 /etc/pam.d/common-password
password requisite pam_cracklib.so retry=3 minlen=8 difok=3 dcredit=-1 lcredit=-1 ocredit=-1 ucredit=-1