如何设置
直接设置空不行
[root@10 pam.d]# passwd mzhan017
Changing password for user mzhan017.
New password:
BAD PASSWORD: No password supplied
Retype new password:
No password supplied
passwd: Authentication token manipulation error
需要 -d 选项
passwd -d mzhan017
登陆
pam 需要设置
但是登陆的时候,还是不能空密码登陆,即使在pam_unix里设置 nullok。
sshd 需要设置
#PermitEmptyPasswords no
When password authentication is allowed, it specifies whether the server allows login to accounts with empty password strings.
默认是 no
无密码登陆效果
login