我正在尝试为linux Ubuntu 12.04设置新密码,但是在运行命令时会
给出类似这样的信息
$passwd
Changing password for ubuntu.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Bad: new password is too simple
Enter new UNIX password:
我真的不明白为什么会这样。
解决方案为此,我们必须编辑此文件/etc/pam.d/common-password
,并且必须进行更改,例如此密码
[success=1 default=ignore] pam_unix.so minlen=1 sha512
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句