Comments (4)
nologin的用户不会被记录吧。
from yulong-hids-archived.
我对比时发现不会记录 nologin 用户, 但缺的几个用户都是 /bin/bash 的.
from yulong-hids-archived.
agent/collect/user_linux.go第17到20行
userList := strings.Split(string(dat), "\n")
if len(userList) < 2 {
return
}
for _, info := range userList[0 : len(userList)-2] {
……
}
不太理解这个逻辑,这里为什么要在小于2行时,直接返回,也不取最后两行
from yulong-hids-archived.
nologin用户是不会被监控到的,将如下代码
for _, info := range userList[0 : len(userList)-2] {
改为
for _, info := range userList[0 : len(userList)-1] {
即可,否则会漏掉一个user用户
from yulong-hids-archived.
Related Issues (20)
- Error compile web binary HOT 6
- 无法卸载agent HOT 1
- 在某些内核版本下加载驱动,会造成系统挂掉
- 忽略
- 点赞 HOT 1
- 单独有一台监控的服务器进程异常敏感,随便敲个命令都会告警 HOT 1
- Available server node 是否支持nat映射 HOT 2
- 是不是打上spectre_v2补丁驱动就不能用了
- 启动web.exe无法绑定ip地址 HOT 1
- cnetos insmod syshook_execve.ko 内核版本 3.10.0-862.el7.x86_64 导致机器挂掉 HOT 3
- 驱动中宽字符(中文)处理问题
- 写的非常棒
- 我想把项目进行32位Linux的移植 HOT 1
- Agent安装失败 HOT 2
- fix task_id error
- agent在windows和linux下都无法运行
- web配置文件app.conf中ylhostname参数不起作用,base.go的24行c.Ctx.Input.Host()获取的不是客户端ip,可以用c.Ctx.Input.IP()替代
- 对进程的规则不起作用 HOT 2
- centos 启动agent时,瞬间把文件描述符打到65K,机器搞死了,怎么解决这个bug
- Process monitoring could not be started (无法实现进程监控)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yulong-hids-archived.