linux用户登陆超过限制,锁定账户

vi /etc/pam.d/login

添加命令

auth required pam_tally2.so deny=3 unlock_time=60 even_deny_root root_unlock_time=60

vi /etc/pam.d/sshd

添加命令

auth required pam_tally2.so deny=3 unlock_time=60 even_deny_root root_unlock_time=60

执行命令

service sshd restart

猜你喜欢

转载自blog.csdn.net/dabao87/article/details/83902455
今日推荐