Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin的子目录如果有个软连接 #15

Open
wkshare opened this issue Aug 20, 2015 · 3 comments
Open

plugin的子目录如果有个软连接 #15

wkshare opened this issue Aug 20, 2015 · 3 comments

Comments

@wkshare
Copy link

wkshare commented Aug 20, 2015

这个需求是这样的:
我们有些监控脚本,需要较高的权限,于是部分脚本准备设置setuid,给予root权限。
并在plugin中放置一个软连接,指向某个自定义脚本目录。

这种方式是否可行?或者你们有什么解决方案?

@UlricQin @laiwei @niean

@wkshare
Copy link
Author

wkshare commented Aug 20, 2015

脚本不是setuid、setuig,还在想该怎么整。

@UlricQin
Copy link
Contributor

你们是什么功能需要root权限来跑?我们内部的监控采集都是普通账号

@wkshare
Copy link
Author

wkshare commented Sep 1, 2015

@UlricQin 不是特别多,但是有几个。
比如:/etc/shadow 等,还有一些我们自己的涉及安全的服务文件。这些文件只有root才可以访问。

这边初步考虑让root的crontab,自行push数据到agent。如何?

jimmyxian pushed a commit to jimmyxian/agent that referenced this issue Jan 30, 2019
修复内核版本低于2.6.33时取不到net.if.speed.bits值的问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants