title: Run Laravel Commands with www-data user
body: <p>I made a command in Laravel 5.1 that is supposed to delete some directories from the file system.</p>
  
  <p>in the <code>handle()</code> method of the command class, i did <code>shell_exec("whoami")</code>
  and it returns <code>raheel</code>. However the user <code>raheel</code> has no permission on the specified directory. I want to run this command as apache <code>www-data</code> user.</p>
  
  <p>How can i implement this in Laravel ?</p>
  
  <p>Thanks</p>