Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Can not see /usr/local/bin for some user

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 2 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tobiascapin
      last edited by

      I have a problem: some pfsense users can not see all the filesystem folders… and I can not understand why.

      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".
      Squid cannot run a php script from squid because "php is not found". And here starts my odyssey.

      I tried to impersonate proxy user to understand what's wrong, I added /bin/sh shell to proxy user and I logged as proxy 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.

      So I tryed to link an sh script to squid, the script was like this: ls -R / > /tmp/fstree.txt the answer is that the /usr/local/bin doesn't exists…  :o
      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.
      I tried to link /usr/local/bin/php to /bin/php with a soft link and now squid can run php scripts…

      This is solved, but some php extension can not find their file...
      What I'm missing? Why by sheel I can see that folder and squid daemon (with the same user) can not see it?

      Thank you.

      1 Reply Last reply
      Reply Quote 0
      • T
        tobiascapin
        last edited by

        Seems that /usr/local is remapped to /usr/pbi/squid-amd64/local for squid process… is it correct?

        1 Reply Last reply
        Reply Quote 0
        • T
          tobiascapin
          last edited by

          My answer to use PHP scripts in squid external ACL is this:

          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
          
          1 Reply Last reply
          Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            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.

            1 Reply Last reply
            Reply Quote 0
            • T
              tobiascapin
              last edited by

              I need a squid ACL to authenticate user by mysql database, my choices is: php, perl or java. The simplest seems to be php…
              So what is you answer to avoid symlinks?

              1 Reply Last reply
              Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Don't use Squid. Solved.

                1 Reply Last reply
                Reply Quote 0
                • T
                  tobiascapin
                  last edited by

                  I solved using squid in a debian server  :P

                  1 Reply Last reply
                  Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy