title: CHMOD a linux directory using PHP on an apache server
body: <p>Has anyone ever used PHP (proven and successful) to CHMOD a directory through a Web Browser?</p>
  
  <p>My roadblocks are:
  (a) PHP script runs as "nobody" from the browser
  (b) directory above the one I want to CHMOD is owned by the ftp user and "nobody" does not have write permissions to it</p>
  
  <p>So when I try to <strong>chmod 0666 /usr/www/dirOwnedbyFTPuser/dirIamTryingToCHMOD/</strong> I get Permission denied</p>
  
  <p>If you have ever written and successfully run a script to do this, can you share the snipit of code with me? Thanks...been at this for months.</p>