博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RH253读书笔记(9)-Lab 9 Account Management Methods
阅读量:6615 次
发布时间:2019-06-24

本文共 1324 字,大约阅读时间需要 4 分钟。

Lab 9 Account Management Methods

Goal: To build skills with PAM configuration

Sequence 1: Track Failed Login Attempts

Scenario: As system administrator you have decided to keep track of failed login attempts. You would like to record how many times users are failing to login, from where they are trying to login, and the latest attempts.

Deliverable: The ability to identify failed login attempts by using pam_tally.so and the faillog command-line tool.

Lab Setup: Make sure there is an unpriviledged user account for user student.

Instructions:

1. Verify the output of faillog by running:

faillog -u student

You should see a report header but no failed login data.

2. Add the following line to the /etc/pam.d/system-auth file just below the first sequence of the auth management group.

auth required pam_tally.so no_magic_root

3. Add the following line to the /etc/pam.d/system-auth file just below the first sequence of the account management group.

account required pam_tally.so deny=2 no_magic_root

4. Save the /etc/pam.d/system-auth file.

5. Switch to a virtual console and login as student 3 times, typing an incorrect password each time.

6. Verify that your changes took place by re-running the faillog -u student command again.

This time you should see report data.

转载于:https://www.cnblogs.com/thlzhf/p/3478035.html

你可能感兴趣的文章
Perl完全自学手册图文教程
查看>>
python(5)字典
查看>>
wordpress拿WebShell
查看>>
脚本结构和执行
查看>>
warden创建容器的过程
查看>>
【c++】size_t 和 size_type的区别
查看>>
SpringBoot之浅析配置项解析(三)
查看>>
15.2. switchport trunk encapsulation dot1q 提示 invaild input at^marker.
查看>>
getline函数(精华版)
查看>>
互联网辅助代理IP软件的应用需守牢数据安全的“底线”
查看>>
快速排序及其优化
查看>>
程序猿生存指南-10 敲定工作
查看>>
LDAP密码认证例子
查看>>
2019程序媛面试之美少女战士
查看>>
黑马程序员——内部类
查看>>
校园的早晨
查看>>
单例模式的5种实现方式,以及在多线程环境下5种创建单例模式的效率
查看>>
oracle取前几行|中间几行|后几行
查看>>
16.1 Tomcat介绍
查看>>
QuickBI助你成为分析师——数据源FAQ小结
查看>>