ispCP - Board - Support
script created file perrmisions - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: script created file perrmisions (/thread-1513.html)



script created file perrmisions - Basas - 10-12-2007 10:59 PM

Hi there,
i have question, how to solve proplem with permissions?
i have ispcp and apache is running on www-data user, created virtual user e.g. vu2005 he is uploading index.php file with permission 644 to his directory. user come from web and index.php file is creating example image.jpg with www-data owner and with 644 permission, so user logged in ftp cant delete that file. any suggesnions how to fix this issue?


RE: script created file perrmisions - rbtux - 10-12-2007 11:03 PM

when php is creating that file, It should be owned by the vu user...

How is you configuration?


RE: script created file perrmisions - BeNe - 10-12-2007 11:11 PM

Breaki did some changes about the rights and permissions in r844
-> http://www.isp-control.net/ispcp/changeset/844
But i´m not sure if this is also the soultion for your Problem

Greez BeNe


RE: script created file perrmisions - Basas - 10-12-2007 11:14 PM

default config of iscp


RE: script created file perrmisions - rbtux - 10-12-2007 11:14 PM

do i get this wrong?

we do have a fcgi wraper with suexec?

The php script runs as user vuxxxx and therefore the generated stuff also belongs to this user, does it not?