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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
inotify_eventdoesn’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.