squid bind to port 80 fails when started via squid.sh script

Chuck Swiger cswiger at mac.com
Tue Jul 5 17:39:10 GMT 2005


Wayne Sierke wrote:
> FreeBSD 5.4-RELEASE/squid-2.5.9_3
> 
> If I start squid via the script (as root), I get:
> 
> /var/log/squid_cache.log:
> 
> commBind: Cannot bind socket FD 11 to *:80: (13) Permission denied
> FATAL: Cannot open HTTP Port
> Squid Cache (Version 2.5.STABLE9): Terminated abnormally.

The squid startup script probably changes to a non-root user before running the 
squid binary, which means that squid cannot bind to a port below 1024. 
Normally, people run squid on port 3128, although 8080 is also relatively common.

-- 
-Chuck



More information about the freebsd-questions mailing list