chmod tmp to 666?

I posted something about this before but didn't get much in the way of responses (for some reason the mods changed the subject line to something irrelevant, which didn't help), so let me rephrase the question.

I am running RedHat 7.2 with Plesk. I want to chmod the /tmp directory to 666. This will theoretically make the directory so that it does not run executable files. It seems to me this would be a huge security boost, since many of the hacks attempts I've seen involve getting executables into the /tmp directory (through httpd).

I'm wondering if anyone has done this before? Would this cause any problems? Would it actually prevent files from being executed? I created a test directory chmod-ed to 666 and I was still able to run a simple shell script from it. (I didn't test a binary file from that directory... is there a simple one to use for testing purposes? Not skilled enough to create one of my own.)

Any thoughts or advice about this is appreciated.

 

 

 

 

Top