4 ms·
The chmod is pretty suspect as well.
by gdfasfklshg4 8y ago
The chmod is pretty suspect as well.
- y4mi 8y agoits really not... cache is the equivalent to /tmp check permissions there sometimes.
- gdfasfklshg4 8y agoUnless it is mounted noexec why would you risk setting the exec bits on files that are writable by the webserver?
- DCoder 8y agoThe exec bit is also important for accessing sub/directories. Although for that you should use X instead of x…
- gdfasfklshg4 8y agoOf 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?