LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2005, 07:28 PM   #1
alvi2
Member
 
Registered: Feb 2005
Posts: 77

Rep: Reputation: 15
Question swap in squid


i am using redhat 9
i compiled the squid 2.5 stable 11
now i give the permission to swap or cache dir as

chown root : root /var/spool/squid
chmod 770 /var/spool/squid

similarly dis it for /var/log

now when ever i try this
squid -z

i find this error

2005/09/27 05:00:12| Creating Swap Directories
FATAL: Failed to make swap directory /var/spool/squid/00: (13) Permission deniedSquid Cache (Version 2.5.STABLE11): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 6
Aborted


so i cant understand what type of permission this squid version wants
 
Old 09-26-2005, 08:13 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
squid needs to have permissions as the user it is running as... by default i think the user is "nobody"... but it's much better if you add a "squid" user and a "squid" group with a non-login shell:

Code:
groupadd squid

useradd -g squid -d /var/spool/squid -s /bin/false squid
then make sure your squid directories' permissions are set:
Code:
chown -R squid:squid /var/spool/squid

chmod 750 /var/spool/squid
and make sure in your squid.conf you are specifying that the user and group for squid to be run as is squid:squid... the two options in the squid.conf file should look like:
Code:
cache_effective_user squid

cache_effective_group squid
after you've made sure you have everything set-up correctly, then you can go ahead and execute "squid -z":
Code:
squid -z
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with squid Swap file phatboyz Linux - Software 3 10-26-2005 07:59 AM
Squid swap folder creation problem selvamporko Linux - Software 1 06-22-2005 08:56 PM
Memory/Swap consumption problem with squid and kget drumvudu SUSE / openSUSE 0 02-03-2005 08:10 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
squid cache server- error creating swap directory debloxie Linux - Networking 4 01-19-2004 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration