Restrict Users to Use Old Passwords
This is very useful if you want to disallow users to use same old passwords. The old password file is located at/etc/security/opasswd. This can be achieved by using?PAM?module.
Open ‘/etc/pam.d/system-auth‘ file under?RHEL / CentOS / Fedora.
# vi /etc/pam.d/system-authOpen?‘/etc/pam.d/common-password‘ file under?Ubuntu/Debian/Linux Mint.
# vi /etc/pam.d/common-passwordAdd the following line to ‘auth‘ section.
auth sufficient pam_unix.so likeauth nullokAdd the following line to ‘password‘ section to disallow a user from re-using last?5?password of his or her.
password sufficient pam_unix.so nullok use_authtok md5 shadow remember=5Only last?5?passwords are remember by server. If you tried to use any of last?5?old passwords, you will get an error like.
Password has been already used. Choose another. 與50位技術(shù)專家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的Restrict Users to Use Old Passwords的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: su切换用户
- 下一篇: 计算机操作员理论知识试题,计算机操作员理