views:

52

answers:

1

I am trying to figure out how to determine the user which triggered a specific event when monitoring some files with inotify. Is that even possible? Does the inotify_event structure has something like this?

+3  A: 

inotify_event doesn't have a field for that. Since inotify is asynchronous you can't catch the user in the act either.

Have you considered a fuse filesystem? I think LoggedFS (GPL2+) fits the bill.

Tobu