I have found that my temp folder permissions sometimes get changed and this causes many programs to malfunction, as they can't write to the folder anymore. I then manually set the permissions back to their correct state, but they get changed again after some days, and this is very frustrating. I want to find out which program is changing them.
Is there a way to know which executable changed the permissions of a folder? Is there a way to monitor or log permission changes?
EDIT I also accept any comment or answer that helps me in preventing the programs to modify the permissions