Is chmod 757 safe?
As i am on a shared host , i want to add a image hosting script and it seems that with 755 it doesnt allow me to upload images, so i changed the folder to 757 , is it safe to chmod to 757? In a word, no. In two words, "hell. no!" Let's interpret 757: that would be owner: read write execute groups that have permissions on the file: read - execute the rest of the freaking world: read write execute now, consider someone malicious uploading a short shell script: #!/bin/sh -- rm -rf / Update Aha, the "folder". Okay, here's the deal: if you don't have the execute bit set on a directory, that blocks