linux输入密码维持时间,Ubuntu Linux需要更长的时间来输入错误的密码

Ubuntu系统在密码错误时会增加验证延迟,这是一种安全措施,旨在减缓潜在攻击者的密码破解速度。通过设置`FAIL_DELAY`,系统可以控制两次登录尝试之间的等待时间,防止暴力破解。这种行为可以通过PAM配置文件进行调整。
摘要由CSDN通过智能技术生成

问题描述

当我使用正确的密码登录Ubuntu 8.10时,系统几乎立即会知道该密码正确并登录。但是,如果我输入的密码不正确,则要花更长的时间才能确定该密码不正确,并且向我显示登录屏幕。

为什么是这样?两种情况下是否应该花费相同的时间?

– 谢谢

最佳方法

这是一项安全功能,可降低试图猜测密码的用户的速度。 Ubuntu需要花费相同的时间来查看它是否正确,但是要等待几秒钟,然后才能再次尝试。

次佳方法

正如Dentrasi解释的那样-这将使攻击者更难对密码存储库进行brute-force攻击。在几乎所有情况下,您都不会更改此行为。

如果您有充分的理由(我想不到),则可以通过/etc/login.defs对其进行修改-请参见login.defs(5)手册页。

FAIL_DELAY (number)

Delay in seconds before being allowed another attempt after a login failure.

嗯…在联机帮助页的末尾…

Much of the functionality that used to be provided by the shadow password suite

is now handled by PAM. Thus, /etc/login.defs is no longer used by passwd(1), or

less used by login(1), and su(1). Please refer to the corresponding PAM

configuration files instead.

相应的PAM条目…

# Enforce a minimal delay in case of failure (in microseconds).

# (Replaces the `FAIL_DELAY' setting from login.defs)

# Note that other modules may require another minimal delay. (for example,

# to disable any delay, you should add the nodelay option to pam_unix)

auth optional pam_faildelay.so delay=3000000

参考资料

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值