Home

zhangyiqun

Thoughts, stories and ideas.

Notes Blog Archives About
27 Nov 2009

如何记录faillog?

# vi /etc/pam.d/system-auth

插入

auth required pam_tally.so no_magic_root<br /> account required pam_tally.so deny=3 no_magic_root lock_time=180

经测试no_magic_root在pam-0.99.6.2-3.27.el5无效

效果

# faillog -a

Login       Failures Maximum Latest                   On

temp           19        0   11/26/09 20:11:27 +0800  192.168.56.2

Notes Blog Archives About