{"id":182,"date":"2025-10-05T22:33:35","date_gmt":"2025-10-05T22:33:35","guid":{"rendered":"https:\/\/imakun.cn\/wordpress\/?p=182"},"modified":"2025-10-05T22:33:36","modified_gmt":"2025-10-05T22:33:36","slug":"%e4%bf%ae%e6%94%b9%e9%93%b6%e6%b2%b3%e9%ba%92%e9%ba%9fv10%e5%af%86%e7%a0%81%e5%a4%8d%e6%9d%82%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/imakun.cn\/wordpress\/?p=182","title":{"rendered":"\u4fee\u6539\u94f6\u6cb3\u9e92\u9e9fV10\u5bc6\u7801\u590d\u6742\u5ea6"},"content":{"rendered":"\n<p>Linux\u5bf9\u5e94\u7684\u5bc6\u7801\u7b56\u7565\u6a21\u5757\u6709\uff1apam_passwdqc\u548cpam_pwquality\u3002<br>\u5176\u4e2dpam_passwdqc\u6a21\u5757\u5bf9\u5e94\u7684\u662f\/etc\/login.defs\uff0c<br>pam_pwquality\u6a21\u5757\u5bf9\u5e94\u7684\u662f\/etc\/security\/pwquality.conf<\/p>\n\n\n\n<p>\/etc\/security\/pwquality.conf\u8be6\u89e3<br>retry=N\uff1a \u5b9a\u4e49\u767b\u5f55\/\u4fee\u6539\u5bc6\u7801\u5931\u8d25\u65f6\uff0c\u53ef\u4ee5\u91cd\u8bd5\u7684\u6b21\u6570\uff1b<br>Difok=N\uff1a \u5b9a\u4e49\u65b0\u5bc6\u7801\u4e2d\u5fc5\u987b\u6709\u51e0\u4e2a\u5b57\u7b26\u8981\u4e0e\u65e7\u5bc6\u7801\u4e0d\u540c\u3002\u4f46\u662f\u5982\u679c\u65b0\u5bc6\u7801\u4e2d\u67091\/2\u4ee5\u4e0a\u7684\u5b57\u7b26\u4e0e\u65e7\u5bc6\u7801\u4e0d\u540c\u65f6\uff0c\u8be5\u65b0\u5bc6\u7801\u5c06\u88ab\u63a5\u53d7\uff1b<br>minlen=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u7684\u6700\u5c0f\u957f\u5ea6\uff1b<br>dcredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u6570\u5b57\uff1b<br>ucredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u5927\u5199\u5b57\u6bcd\uff1b<br>lcredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u5c0f\u4e9b\u5b57\u6bcd\uff1b<br>ocredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u7279\u6b8a\u5b57\u7b26\uff08\u9664\u6570\u5b57\u3001\u5b57\u6bcd\u4e4b\u5916\uff09\uff1b<br>\u3010\u5176\u4e2d =-1\u8868\u793a\uff0c\u81f3\u5c11\u6709\u4e00\u4e2a\u3011<\/p>\n\n\n\n<p>\/etc\/login.defs\u8be6\u89e3<br>PASS_MAX_DAYS 99999 \u5bc6\u7801\u7684\u6700\u5927\u6709\u6548\u671f, 99999:\u6c38\u4e45\u6709\u671f<br>PASS_MIN_DAYS 0 \u662f\u5426\u53ef\u4fee\u6539\u5bc6\u7801,0\u53ef\u4fee\u6539,\u975e0\u591a\u5c11\u5929\u540e\u53ef\u4fee\u6539<br>PASS_MIN_LEN 5 \u5bc6\u7801\u6700\u5c0f\u957f\u5ea6,\u4f7f\u7528pam_cracklib module,\u8be5\u53c2\u6570\u4e0d\u518d\u6709\u6548<br>PASS_WARN_AGE 7 \u5bc6\u7801\u5931\u6548\u524d\u591a\u5c11\u5929\u5728\u7528\u6237\u767b\u5f55\u65f6\u901a\u77e5\u7528\u6237\u4fee\u6539\u5bc6\u7801<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u5bf9\u5e94\u7684\u5bc6\u7801\u7b56\u7565\u6a21\u5757\u6709\uff1apam_passwdqc\u548cpam_pwquality\u3002\u5176\u4e2dpam_passwdqc\u6a21\u5757\u5bf9\u5e94\u7684\u662f\/etc\/login.defs\uff0cpam_pwquality\u6a21\u5757\u5bf9\u5e94\u7684\u662f\/etc\/security\/pwquality.conf \/etc\/security\/pwquality.conf\u8be6\u89e3retry=N\uff1a \u5b9a\u4e49\u767b\u5f55\/\u4fee\u6539\u5bc6\u7801\u5931\u8d25\u65f6\uff0c\u53ef\u4ee5\u91cd\u8bd5\u7684\u6b21\u6570\uff1bDifok=N\uff1a \u5b9a\u4e49\u65b0\u5bc6\u7801\u4e2d\u5fc5\u987b\u6709\u51e0\u4e2a\u5b57\u7b26\u8981\u4e0e\u65e7\u5bc6\u7801\u4e0d\u540c\u3002\u4f46\u662f\u5982\u679c\u65b0\u5bc6\u7801\u4e2d\u67091\/2\u4ee5\u4e0a\u7684\u5b57\u7b26\u4e0e\u65e7\u5bc6\u7801\u4e0d\u540c\u65f6\uff0c\u8be5\u65b0\u5bc6\u7801\u5c06\u88ab\u63a5\u53d7\uff1bminlen=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u7684\u6700\u5c0f\u957f\u5ea6\uff1bdcredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u6570\u5b57\uff1bucredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u5927\u5199\u5b57\u6bcd\uff1blcredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u5c0f\u4e9b\u5b57\u6bcd\uff1bocredit=N\uff1a \u5b9a\u4e49\u7528\u6237\u5bc6\u7801\u4e2d\u5fc5\u987b\u5305\u542b\u591a\u5c11\u4e2a\u7279\u6b8a\u5b57\u7b26\uff08\u9664\u6570\u5b57\u3001\u5b57\u6bcd\u4e4b\u5916\uff09\uff1b\u3010\u5176\u4e2d =-1\u8868\u793a\uff0c\u81f3\u5c11\u6709\u4e00\u4e2a\u3011 \/etc\/login.defs\u8be6\u89e3PASS_MAX_DAYS 99999 \u5bc6\u7801\u7684\u6700\u5927\u6709\u6548\u671f, 99999:\u6c38\u4e45\u6709\u671fPASS_MIN_DAYS 0 \u662f\u5426\u53ef\u4fee\u6539\u5bc6\u7801,0\u53ef\u4fee\u6539,\u975e0\u591a\u5c11\u5929\u540e\u53ef\u4fee\u6539PASS_MIN_LEN 5 \u5bc6\u7801\u6700\u5c0f\u957f\u5ea6,\u4f7f\u7528pam_cracklib module,\u8be5\u53c2\u6570\u4e0d\u518d\u6709\u6548PASS_WARN_AGE 7 \u5bc6\u7801\u5931\u6548\u524d\u591a\u5c11\u5929\u5728\u7528\u6237\u767b\u5f55\u65f6\u901a\u77e5\u7528\u6237\u4fee\u6539\u5bc6\u7801<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":1,"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":183,"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions\/183"}],"wp:attachment":[{"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imakun.cn\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}