Page 1 of 1

ISP changes file owners rights resulting in tmp/cache problems

Posted: Sat Apr 01, 2006 6:42 pm
by RickB
Hi,

My ISP daily changes the file owners rights on all the files of my client thus resulting in files that can't be accessed. I tried adding chmod 777 to it, but i can't see any changes too it when i look to the file rights when logged in onto the shell. it keeps being -rw-r--r--    1 nobody  other

when the scripts has been run, the owner shows -> login:users


anyone an idea?

Best Regards
Rick B, Netherlands

Re: ISP changes file owners rights resulting in tmp/cache problems

Posted: Sat Apr 01, 2006 6:48 pm
by RickB
sorry, the files it concernes are in TMP_CACHE_LOCATION (also known as /tmp/cache/)
addcontent.php, addtemplate.php, editcontent.php, edittemplate.php


I added chmod($tmpfname, 0777) and the end of these lines:

$handle = fopen($tmpfname, "w");
fwrite($handle, serialize($data));
fclose($handle);