title: What is the safest way to run an executable on Linux?
body: <p>I am trying to run a program compiled from C code from an unknown source. I want to make sure that the program  does not harm my system in anyway. Like for instance, the program might have soemthing like <code>system("rm -rf /")</code> in the source, which is un-detectable, unless the code is thoroughly examined.</p>
  
  <p>I thought of the following 2 ways</p>
  
  <ol>
  <li>Run it inside a VM like VMWare</li>
  <li>Build a windows exe on linux and run on wine</li>
  </ol>
  
  <p>Both are not very elegant solutions and I cannot automate them. and also, in case of 1, it can harm the VM.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>I want to run the program in what we can call a "sandbox".</p>