title: PHP shell_exec() and sudo: must be setuid root
body: <p>I have a <code>shell_exec()</code> command that accesses a directory above my document root so I need to use sudo "as root" to make it happen. (I understand the security issues and am putitng in measures to address it).</p>
  
  <p>The issue is when I run the <code>shell_exec()</code> I get a "sudo: must be setuid root" error in my apache error_log file.</p>
  
  <p>I thought the solution was to chmod 4750 the bash script that is called by my <code>sheel_exec()</code> but that does not do the job.</p>
  
  <p>What exactly is "sudo: must be setuid root" trying to tell me and how might I resolve it?</p>