Why is www's $PATH only /usr/bin:/bin?
Niklaas Baudet von Gersdorff
stdin at niklaas.eu
Tue Apr 26 19:40:58 UTC 2016
Hi,
I figured that www's $PATH is only /usr/bin:/bin. Why is that if
/etc/login.conf says the following?
default:\
--------8<--------
:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
--------8<--------
/etc/passwd looks like this.
www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
So, I left everything the default.
The thing is that I want to run something in /usr/local/bin with PHP's
shell_exec($cmd);
but that's not working because it's not in $PATH.
Any hint is very much appreciated.
Niklaas
More information about the freebsd-questions
mailing list