Is it possible to monitor a directory, so that:
- if a file or sub-directory is created or modified inside, however deep inside the monitored directory,
- then a script can automatically be applied to the created/modified file/directory? (typically chgrp+chmod)
I've heard about "fam" that may be the answer, but I can't seem to find doc about it on internet...
Alternatively, is there a better/simpler solution, to just ensure that any content under a given directory is always read/writable for all members of a group (sort of forcing the gid and umask of that directory), without having to place this directory on a separate partition ? (because I know it is feasible with a mounted FAT32 partition, and besides, I want to rely on XFS or ReiserFS...)
Thanks,
Yves.