标题: telnet登录失败后,重试延时在哪里设置?默认是多少? [打印本页] 作者: kickeagle 时间: 2009-08-22 23:09 标题: telnet登录失败后,重试延时在哪里设置?默认是多少? 如题,我想增加telnet登录失败后,再次重试的延时时间,应该在哪里设置?默认值是多少秒?
多谢作者: zhmzhouming 时间: 2009-08-24 09:36
vi /etc/default/login
修改下面这段话:
# DISABLETIME If present, and greater than zero, the number of seconds
# login will wait after RETRIES failed attempts or the PAM framework returns
# PAM_ABORT. Default is 20. Minimum is 0. No maximum is imposed.
#
#DISABLETIME=20
可能你还要修改这段话,修改可以retries的次数:
# RETRIES determines the number of failed logins that will be
# allowed before login exits. Default is 5 and maximum is 15.
# If account locking is configured (user_attr(4)/policy.conf(4))
# for a local user's account (passwd(4)/shadow(4)), that account
# will be locked if failed logins equals or exceeds RETRIES.
#
#RETRIES=5