Answer the question
In order to leave comments, you need to log in
How to catch editing a file by a process, a user on a Linux server?
1. There was a file and it was gone.
2. The file has been edited unexpectedly.
How (what utility) to understand who or what was done?
Server hacking and malicious actions are 99% excluded, this is something happening inside the system.
I would like a solution like "logging everything that happens on the server" (who and when edited / added / deleted the file in the system).
Answer the question
In order to leave comments, you need to log in
Try Snoopy first.
If it does not help, then the script for inotify already.
rsyslog.d + inotify, in theory, you can write a small daemon that will catch file changes and write to the log who did it.
I like auditd, it's easy to set up and run, it can track almost everything that happens in the system (I kept track of who, what, when and with what parameters it starts).
ps and yes, you don't need to write anything yourself;)
Inotify for help en.wikipedia.org/wiki/Inotify
AND rus-linux.net/MyLDP/kernel/Inotify-tools.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question