Resolve and Remove "BAD PASSWORD: It is Based on a Dictionary Word "in Linux


[轉自]http://www.dbuggr.com/smallwei/resolve-remove-linux-bad-password-based-dictionary-word/

Resolve and Remove “BAD PASSWORD: it is based on a dictionary word “in Linux
If you know what you’re doing and want to use weak password in Linux (CentOS, RedHat … etc), follow the steps below.

1. vi /etc/pam.d/system-auth as root.

2. Look for the following two lines:

password    requisite     pam_cracklib.so try_first_pass retry=3
password    sufficient    pam_unix.so md5 shadow nullok try_first_pass use_authtok

 3. Comment out the first of the two lines:

#password    requisite     pam_cracklib.so try_first_pass retry=3

4. Remove use_authtok on the second line. Otherwise you’ll get “passwd: Authentication information cannot be recovered” error.
password    sufficient    pam_unix.so md5 shadow nullok try_first_pass

5. That’s it. Try changing your password again.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM