在 Linux 文件中记录系统活动

发布于 2024-10-03 18:24:00 字数 227 浏览 0 评论 0原文

我必须记录将对特定文件执行的所有操作。

工具audit正是我所需要的,但它在日志文件中写入了许多有关其他文件(系统文件)的无用信息。

audit 是否可以在特定日志文件 (/var/log/audit/specific_file) 中输出特定监视文件 (/user/home/specific_file)?

其他类似于审计的工具?

谢谢!

I have to log all the operation that will be do to a specific file(s).

The tool audit is exactly what I need, but it writes in the log file a lot of other unusefull information about other files (system files).

Is it possible with audit to have the output of a specific watch file (/user/home/specific_file) in a specific log file (/var/log/audit/specific_file)?

Other tool similar to audit?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一人独醉 2024-10-10 18:24:00

inotifywait 命令可以输出大量有关文件和/或目录发生情况的信息。

inotifywait command can spit out lots of info about what's happening to files and/or directories.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文