PAM:在SUSE Linux中更改为新密码之前确认旧密码

时间:2017-03-23 01:34:29

标签: linux pam passwd pam-unix

操作系统:SUSE Linux Enterprise Server 10

Login as root
server:~ # cat /etc/pam.d/common-password | grep -i ^PASS
password  required       pam_cracklib.so retry=3 minlen=9 dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 difok=4
password  required       pam_pwcheck.so  nullok use_authtok remember=5
password  required       pam_unix2.so    nullok use_authtok


Login as user
user@server:~> passwd user
Changing password for user.
New UNIX password:
Retype new UNIX password:
Old Password:
Password changed.

我希望在更改新密码之前先询问旧密码

0 个答案:

没有答案