linux (centos) privilege to copy file
- by vick
I need some help with priviligies in centos
I have a file in
home/admin/public_html/generate.php
that I want to do some file copy with using php copy function
When I set the file to chown admin:admin generate.php I can access the file but I cannot execute the php copy command because I don't have the proper rights.
When I set the file to root:root generate.php I cant access the file beacuse its under admin user folder home/admin/public_html/generate.php
how do I solve please, thankful for any help.
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
I am using CENTOS