Hacker News new | past | comments | ask | show | jobs | submit login

its really not... cache is the equivalent to /tmp

check permissions there sometimes.




Unless it is mounted noexec why would you risk setting the exec bits on files that are writable by the webserver?


The exec bit is also important for accessing sub/directories. Although for that you should use X instead of x…


Of course. I actually regard this as a fairly major issue with the Linux permissions model. Far too many people do as the GP and accidentally set all the files to executable. Cleaning up after someone has done this on a nested set of subdirectories is quite tedious.

NB if anyone has ever run: chmod -R u+x . or equivalent and you run chmod -R u=rwX the files will stay executable...

You can always use find to set all files to +x and directories to -x but then what if some of files needed to be executable?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: