Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid+squidguard not running

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    2 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.
    • 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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.