操作系统: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.
我希望它在更改新密码之前先询问旧密码