linux (centos) privilege to copy file
Posted
by vick
on Stack Overflow
See other posts from Stack Overflow
or by vick
Published on 2010-05-04T04:15:03Z
Indexed on
2010/05/04
4:18 UTC
Read the original article
Hit count: 190
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
© Stack Overflow or respective owner