Web Hosting Talk







View Full Version : [PHP] HELP! Warning: chmod(): Operation not permitted


sllik
12-24-2004, 08:29 PM
Ok, here is the deal... I'm trying to chmod and move some files using php (yes, it has to be done with php) that were uploaded by users through ftp. I get the "Operation not permitted" error.

All the uploaded files are in the same directory and are owned by the same group & user.

PHP on my webserver runs as "nobody".

Anyone knows what can be done to accomplish what I'm trying to do?

Thanks

Carbon[die]oxide
12-24-2004, 08:41 PM
Have you tried chmoding the file which will be doing the chomding to 777?

assistanz247
12-24-2004, 09:39 PM
Hi,

Make sure the ownership of those files are set as 'nobody', otherwise it will give you the 'Operation not permitted' error. But I would suggest you to write a cron job to chmod the files, which will work for sure.

Merry christmas!!:cool: