title: How to know which process is changing a file in linux
body: <p>I'm using an automation tool to build a virtual machine. During the this automation a config file (/etc/myprogram/cofig.ini) is becoming empty.</p>
  
  <p>This file's contents are required complete the automation, but I'm clueless which process is emptying the file.</p>
  
  <p>I want to monitor a file and list the name of processes changed the contents of the file.</p>
  
  <p>I'm using Ubuntu 16.04. </p>
  
  <p>I saw some questions in Stackoverflow but did help. I tried to use audictl inotify and watchdog . Please let me know any better way to do this. Is there a way to do this using python.</p>