<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user]]></title><description><![CDATA[<p dir="auto">I have a problem: some pfsense users can not see all the filesystem folders… and I can not understand why.</p>
<p dir="auto">I installed a standard pfsense in a x64 machine, I added squid package and external acl php script called by squid daemon with its user "proxy".<br />
Squid cannot run a php script from squid because "php is not found". And here starts my odyssey.</p>
<p dir="auto">I tried to impersonate proxy user to understand what's wrong, I added /bin/sh shell to <em>proxy</em> user and I logged as <em>proxy</em> user  with su proxy command. The answer is that via shell logon I could see /usr/local/bin/php and I could run my php scripts.</p>
<p dir="auto">So I tryed to link an sh script to squid, the script was like this: ls -R / &gt; /tmp/fstree.txt the answer is that the /usr/local/bin doesn't exists…  :o<br />
<strong>Therefore I'm absolutely sure that squid daemon  can not see the /usr/local/bin folder but loggin with su proxy I can see it.</strong><br />
I tried to link /usr/local/bin/php to /bin/php with a soft link and now squid can run php scripts…</p>
<p dir="auto">This is solved, but some php extension can not find their file...<br />
What I'm missing? Why by sheel I can see that folder and squid daemon (with the same user) can not see it?</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.netgate.com/topic/82602/can-not-see-usr-local-bin-for-some-user</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 16:27:49 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/82602.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Apr 2015 07:10:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user on Tue, 09 Jun 2015 08:41:03 GMT]]></title><description><![CDATA[<p dir="auto">I solved using squid in a debian server  :P</p>
]]></description><link>https://forum.netgate.com/post/549865</link><guid isPermaLink="true">https://forum.netgate.com/post/549865</guid><dc:creator><![CDATA[tobiascapin]]></dc:creator><pubDate>Tue, 09 Jun 2015 08:41:03 GMT</pubDate></item><item><title><![CDATA[Reply to Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user on Fri, 10 Apr 2015 17:04:10 GMT]]></title><description><![CDATA[<p dir="auto">Don't use Squid. Solved.</p>
]]></description><link>https://forum.netgate.com/post/535371</link><guid isPermaLink="true">https://forum.netgate.com/post/535371</guid><dc:creator><![CDATA[doktornotor]]></dc:creator><pubDate>Fri, 10 Apr 2015 17:04:10 GMT</pubDate></item><item><title><![CDATA[Reply to Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user on Fri, 10 Apr 2015 12:46:42 GMT]]></title><description><![CDATA[<p dir="auto">I need a squid ACL to authenticate user by mysql database, my choices is: php, perl or java. The simplest seems to be php…<br />
So what is you answer to avoid symlinks?</p>
]]></description><link>https://forum.netgate.com/post/535307</link><guid isPermaLink="true">https://forum.netgate.com/post/535307</guid><dc:creator><![CDATA[tobiascapin]]></dc:creator><pubDate>Fri, 10 Apr 2015 12:46:42 GMT</pubDate></item><item><title><![CDATA[Reply to Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user on Fri, 10 Apr 2015 10:25:49 GMT]]></title><description><![CDATA[<p dir="auto">Sir, by creating these symlinks, you are on a sure way to hell. Stop working around PBI idiocy by causing more damage to your system.</p>
]]></description><link>https://forum.netgate.com/post/535261</link><guid isPermaLink="true">https://forum.netgate.com/post/535261</guid><dc:creator><![CDATA[doktornotor]]></dc:creator><pubDate>Fri, 10 Apr 2015 10:25:49 GMT</pubDate></item><item><title><![CDATA[Reply to Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user on Fri, 10 Apr 2015 08:18:11 GMT]]></title><description><![CDATA[<p dir="auto">My answer to use PHP scripts in squid external ACL is this:</p>
<pre><code>ln -s /usr/local/bin/php /usr/pbi/squid-amd64/local/bin/php
ln -s /usr/local/lib/php /usr/pbi/squid-amd64/local/lib/php
ln -s /usr/local/etc/php.ini /usr/pbi/squid-amd64/local/etc/php.ini
</code></pre>
]]></description><link>https://forum.netgate.com/post/535231</link><guid isPermaLink="true">https://forum.netgate.com/post/535231</guid><dc:creator><![CDATA[tobiascapin]]></dc:creator><pubDate>Fri, 10 Apr 2015 08:18:11 GMT</pubDate></item><item><title><![CDATA[Reply to Can not see &#x2F;usr&#x2F;local&#x2F;bin for some user on Fri, 10 Apr 2015 07:58:39 GMT]]></title><description><![CDATA[<p dir="auto">Seems that /usr/local is remapped to /usr/pbi/squid-amd64/local for squid process… is it correct?</p>
]]></description><link>https://forum.netgate.com/post/535228</link><guid isPermaLink="true">https://forum.netgate.com/post/535228</guid><dc:creator><![CDATA[tobiascapin]]></dc:creator><pubDate>Fri, 10 Apr 2015 07:58:39 GMT</pubDate></item></channel></rss>