Last modified: 2013-11-22 19:01:41 UTC
For example PHP scripts have a PATH setting of "/bin" (http://tools.wmflabs.org/wikilint/test.php). This should at least include /usr/bin and /usr/local/bin, even better $HOME/bin.
Addendum: qsub calls basename without absolute path, and the latter resides in /usr/bin, so submitting jobs from the webserver is virtually impossible for normal users.
Related URL: https://gerrit.wikimedia.org/r/65007 (Gerrit Change I7d03609b0c901527c0dcd492ba99af64e517a13e)
Except the for side effect of qsub (which was a bug, since fixed), this should be immaterial: any tool that relies on $PATH to reach executable files is broken by definition and should use explicit paths only. (Doing otherwise leads to subtle and hard to track errors at best, security problems at worst).