轉自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, 這個文件記錄了歷史密碼,把它清空,再重新設置密碼,問題解決。