Forum Moderators: coopster

Message Too Old, No Replies

directory permissions for fwrite

trying to get best permission code

         

weddingm

10:18 pm on Mar 12, 2007 (gmt 0)

10+ Year Member



Hello everyone.

I use the fwrite command so that visitors are able to create a PHP web page with the information they submit via a form. I am trying to find the best permission code that is not 777 that will allow the fwrite command but not allow hackers to upload to the server. Do you have any suggestions as to what permission to use as I was hacked this weekend.

Thanks,

JAB Creations

5:50 am on Mar 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use CuteFTP and I usually just check a box, reload the file, and see if that particular permission works or not. Using 646 seems rather restrictive while still allowing the server to write to itself though I'm sure I put that wrong. Don't go on my advice alone on this one though.

- John