Date: Tue, 26 Apr 2016 21:40:48 +0200 From: Niklaas Baudet von Gersdorff <stdin@niklaas.eu> To: freebsd-questions@freebsd.org Subject: Why is www's $PATH only /usr/bin:/bin? Message-ID: <20160426194048.GA31481@box-fra-01.niklaas.eu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160426194048.GA31481>
