0

If a file is uploaded or created in any way by a php file I cannot modify it, however I can delete it. This is really irritating.

P.S.: All of the files that have been created or uploaded have been done with phpBB 3.0.11

Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
Timberwolf
  • 426
  • 4
  • 13

1 Answers1

1

Most probably, PHP is running under the web server user (httpd, www, www-data or similar). When files are uploaded, they are owned by this user.

You cannot modify the files as you are not the owner. You can however delete them as you most probably own the upload directory.

Some solutions are:

Phil
  • 157,677
  • 23
  • 242
  • 245
  • 1
    The easiest way to fix it is to add the web server group (www-data in my case) to my user and make sure it's group-writable. – Timberwolf Jun 28 '15 at 21:29