Hi,
I have a newbie question, for which I nonetheless could not find a reasonable answer on Google no matter how long I searched.
It's stated everywhere that a script's permission must be 755 for it to work. While I understand the need to give everyone the permission to *execute* a script, I don't see why anyone but the script's owner should have *read* access to it. If you let someone see the logic of your script, aren't you compromising your system? The same goes for *write* permissions for database files: as soon as someone finds out these files exist, won't they be able to tamper with them given that these files are world-writable?
Sorry if my questions sound primitive, but nonetheless I still couldn't find a straight answer to them anywhere on the web...
Thanks in advance,
Dmitri.
I have a newbie question, for which I nonetheless could not find a reasonable answer on Google no matter how long I searched.
It's stated everywhere that a script's permission must be 755 for it to work. While I understand the need to give everyone the permission to *execute* a script, I don't see why anyone but the script's owner should have *read* access to it. If you let someone see the logic of your script, aren't you compromising your system? The same goes for *write* permissions for database files: as soon as someone finds out these files exist, won't they be able to tamper with them given that these files are world-writable?
Sorry if my questions sound primitive, but nonetheless I still couldn't find a straight answer to them anywhere on the web...
Thanks in advance,
Dmitri.