Is it safe to set a file or folder permission in your hosted site to 777
Is it safe to set a file or folder permission in your hosted site to 777?
Has any one tried doing that? What i read somewhere was it vas very unsafe to do that cos you are at a high risk of geting some unwanted spam. And if you intend to do that you should be ready to handel the spam.
Setting a file to 777 will not get you spam. When you set a files permissions to 777 you are allowing everyone to read + write + execute the file. This can be insecure as unwelcome users may in fact change the file when they should not be allowed. It does not lead to increased spam.
Oh thanks for clearing those doupts. I think most of the files which stores data specified by users or any pics uploaded by user is always set to 777. In that case every forum or every blog ect or any site which allows users to upload their avtar ect will suerly be set to 777. Isant it???
Yeah, the folder for the avatars is usually set to 777 so that images may be uploaded and moved to the folder by PHP or the server side language. And yes, files that will be modified will be set to 777.