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

本文共 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

你可能感兴趣的文章
java设计模式之责任链模式
查看>>
Mybatis缓存模块(一)BlockingCache
查看>>
阻塞与非阻塞 异步 与同步
查看>>
多比图形控件教程:基于Flex/Javascript的网页绘图控件
查看>>
SSLRobot:适用于HttpWatch的免费SSL / TLS测试工具
查看>>
美团多渠道打包原理以及使用
查看>>
Swagger从入门到精通
查看>>
Java并发编程:Callable、Future和FutureTask
查看>>
Tomcat服务与搭建(一)
查看>>
oracle 11g如何完全卸载
查看>>
zabbix系列zabbix3.4监控mysql5.7
查看>>
高级版本 【多后台】
查看>>
使用PostgreSQL进行中文全文检索
查看>>
Java集合的框架和实现类
查看>>
@RequestParam今天才知道是咋用的..
查看>>
全国第一家FPGA云主机(FAAS)正式启动售卖,被阿里云抢先了。
查看>>
Linux 局域网路由新手指南:第 2 部分
查看>>
TensorSpace:超酷炫3D神经网络可视化框架
查看>>
expdp导数脚本
查看>>
横向ListView (二)—— 添加快速滚动功能及item相关事件实现
查看>>