Linux inotify - define users for triggered events

I am trying to figure out how to identify the user who triggered a particular event while monitoring some files using inotify. Is it possible? Does the inotify_event structure have something like this?

+3
source share
1 answer

inotify_eventfor this does not have a field. Since inotify is asynchronous, you also cannot catch the user in action.

Did you read the fuse file system? I think LoggedFS (GPL2 +) is suitable for counting.

+3
source

Source: https://habr.com/ru/post/1749788/


All Articles