Unix File Monitor

Well, I recently came across a situation at my work place where various teams have a common shared space to keep some configuration files and there is no proper synchronization between the teams, some one messes up with the files - every one has to suffer and we used to end up not knowing the last person who accessed the common directory. So, one of my colleagues asked me if I can write a simple monitoring script and I ended up with this which uses unix file stats to detect the change and mails the ip address of the users who even touches the directory:

UnixFileMonitor.sh

All you you need to do is to run this script in background (./UnixFileMonitor.sh &) or add it to the cron. Hope this helps.