BAD PASSWORD: The password fails the dictionary check – it is based on a dictionary word

在Linux系统上有的时候需要设置简单的root密码(可能只是为了测试), 有的发行版会出现下面的提示:

BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word

解决办法有很多,但是最简单的方式就是:

编辑

nano /etc/security/pwquality.conf

添加或者修改

dictcheck=0

这样就可以使用passwd设置弱密码了

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.