Ubuntu设置一个简单的密码【绕过检测版】

By default, Ubuntu requires a minimum password length of 6 characters, as well as some basic entropy checks. These values are controlled in the file /etc/pam.d/common-password, which is outlined below.

password        [success=1 default=ignore]      pam_unix.so obscure use_authtok try_first_pass sha512
等都注释了,完后添加:

password    [success=1 default=ignore]  pam_unix.so minlen=1 sha512

执行命令:

sudo passwd houlin


Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
成了!

上一篇:Linux系统加固思路


下一篇:ZooKeeper 分布式锁 Curator 源码 04:分布式信号量和互斥锁