栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

关于pam、tally2、faillock模块的记录

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

关于pam、tally2、faillock模块的记录

1、
Make sure the counter is set to zero
Attempt deny number of logins using wrong password, so the account is locked.
Wait for unlock_time
check the counter using pam_tally2, it shows the number of failures instead of zero.

2、
The problem with /etc/pam.d/system-auth is that it contains modules that are not usable in remote configurations so remote services such as sshd, vsftpd now use /etc/pam.d/password-auth.

3、pam_tally2计数器
pam_tally2 does not reset the counter immediately after unlock_time, the counter would be set to zero on next successful login.

4、pam_faillock does not unlock account
pam_faillock (PAM Module) reads configuration file /etc/security/faillock.conf. However, faillock command does not read the config file. Therefore, the option must be manually set as command line parameter.
解决方法:
If dir option is used in pam_faillock, supply the faillock directory as command line option:

Raw
faillock --dir /var/log/faillock --user bob
faillock --dir /var/log/faillock --user bob --reset

5 SSHD configuration adjustment
If pam_faillock.so is not working as expected, the following changes may have to be made to SSHD’s configuration:

Raw

vi /etc/ssh/sshd_config

**ChallengeResponseAuthentication yes
Then restart the sshd service in order for these configuration changes to take effect:

Raw

systemctl restart sshd
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/343860.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号