title: linux (centos) privilege to copy file
body: <p>I need some help with priviligies in centos
  I have a file in 
  <code>home/admin/public_html/generate.php</code> </p>
  
  <p>that I want to do some file copy with using <code>php copy function</code></p>
  
  <p>When I set the file to <code>chown admin:admin generate.php</code> I can access the file but I cannot execute the php copy command because I don't have the proper rights.</p>
  
  <p>When I set the file to <code>root:root generate.php</code> I cant access the file beacuse its under admin user folder <code>home/admin/public_html/generate.php</code></p>
  
  <p>how do I solve please, thankful for any help. </p>
  
  <p>Bottom line is that I want my generate.php which is owned by admin:admin to be able to copy files from sources outside its home dir and to other home dirs</p>
  
  <p>I am using CENTOS</p>