add and fix permission for file notification