报错如下:
Password has been already used. Choose another.
passwd: Have exhausted maximum number of retries for service
解决方案:
vim /etc/pam.d/system-auth
password required pam_pwhistory.so use_authtok remember=5 enforce_for_root
修改remember=0,保存。
然后通过命令passwd 用户名修改密码。