php - Writing data to a file with 777 permission -


I have one in a web server with permission as 777 TXT file is Able to edit the contents of this file? The content is not too much - only one number seems to have compromised this file because someone has disappeared the next day!

I do not have anyone else who has an FTP password so I was wondering if this is giving permission? I am a client-side script programmer and do not know much about Linux and permissions.

If it is 777, it means that there is no account on the system, or running on the system Any application (including PPP scripts, even those owned by others who are more than you) can modify the file in any way.

So, yes, it is possible that someone with a file has been typed. Could this be a bug in your PHP script, which was deleted?

If you can do this, like 644, it would be best to reduce permissions for some restrictions. It still works. The owner of a PHP script file accessing the file is executed as a single user. Many webhosts are configured in such a way that you can do this. 644 means that the owner of the file can read and write it, while others can only read.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -