Password has been already used. Choose another. passwd: Have exhausted maximum number of retries for service

转自https://blog.csdn.net/xie_calm/article/details/76672354?utm_source=blogxgwz5

当我们有时候要更改linux账户密码时,有时候会遇到下面这种情况:

Password has been already used. Choose another.
passwd: Have exhausted maximum number of retries for service

 

这个意思是你当前设置的密码最近已经使用过,请重新设置。 那如果偏要使用当前设置的密码该怎么办呢?

找到linux下的一个文件/etc/security/opasswd, 这个文件记录了历史密码,把它清空,再重新设置密码,问题解决。

posted @ 2020-05-19 11:20  士官长  阅读(6937)  评论(0编辑  收藏  举报