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


I figured that www's $PATH is only /usr/bin:/bin. Why is that if
/etc/login.conf says the following?

        :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\

/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


but that's not working because it's not in $PATH.

Any hint is very much appreciated.


More information about the freebsd-questions mailing list