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

    Squid+squidguard not running

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    2 Posts 2 Posters 2.3k 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.
    • Y
      yakinci
      last edited by

      Dear Users, I have a problem about security error message:

      After installing the package there is some error message as:

      "php: /pkg_edit.php: The command '/usr/local/sbin/squid -D' returned exit code '126', the output was '/usr/local/sbin/squid: Permission denied' "

      and then it shows the correction way is as:
      " $ ls -l /usr/local/sbin/squid
      lrwxr-xr-x  1 root  wheel  30 Mar 23 11:20 /usr/local/sbin/squid -> /usr/pbi/squid-i386/sbin "

      but it doesn't work when i correct it as message before i said but if i correct manually the correction way like this:
      "lrwxr-xr-x  1 root  wheel  30 Mar 23 11:20 /usr/local/sbin/squid -> /usr/pbi/squid-i386/sbin/squid"

      It works perfectly. According to me it must be the correction way as: "lrwxr-xr-x  1 root  wheel  30 Mar 23 11:20 /usr/local/sbin/squid -> /usr/pbi/squid-i386/sbin/squid"

      1 Reply Last reply
      Reply Quote 0
      • P
        phil.davis
        last edited by

        There is a little bug in /etc/inc/pkg-utils.inc in pkg_fetch_recursive.

        		$linkdirs = array('bin','sbin');
        		foreach($linkdirs as $dir) {
        			if(is_dir("{$pbidir}/{$dir}")) {
        				$files = scandir("{$pbidir}/{$dir}");
        				foreach($files as $f) {
        					if(!file_exists("/usr/local/{$dir}/{$f}")) {
        						symlink("{$pbidir}/{$dir}/[b]$[/b]{$f}","/usr/local/{$dir}/{$f}");
        					}
        				}
        			}
        		}
        
        

        The bonus "$" before "{$f}" means the filename isn't ending up in the symlinks made here.
        I have done a successful install using the 22 March 2012 nanobsd image, after editing out the bonus "$". I have just submitted a pull request on Github for this change.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        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