Find the answer to your Linux question:
Results 1 to 7 of 7
Hi Friends, I had some troubles configuring squid proxy. I'm running FC6 and tried to install squid-2.6.STABLE4-1.fc6.i386.rpm After the installation. I run the service to start it. The error appeared ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    8

    /var/spool/squid: (13) Permission denied


    Hi Friends,

    I had some troubles configuring squid proxy.

    I'm running FC6 and tried to install squid-2.6.STABLE4-1.fc6.i386.rpm

    After the installation. I run the service to start it. The error appeared however as follows:

    /var/log/squid/cache.log

    2007/01/09 16:18:52| Max Swap size: 102400 KB
    2007/01/09 16:18:52| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
    2007/01/09 16:18:52| /var/spool/squid: (13) Permission denied
    FATAL: Failed to verify one of the swap directories, Check cache.log
    for details. Run 'squid -z' to create swap directories
    if needed, or if running Squid for the first time.
    Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
    CPU Usage: 0.056 seconds = 0.048 user + 0.008 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0

    /var/log/messages

    Jan 9 16:17:32 rigel squid: Failed to make swap directory /var/spool/squid: (13) Permission denied
    Jan 9 16:18:38 rigel last message repeated 2 times
    Jan 9 16:18:38 rigel squid[5721]: Squid Parent: child process 5723 started
    Jan 9 16:18:39 rigel (squid): Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time.
    Jan 9 16:18:39 rigel squid[5721]: Squid Parent: child process 5723 exited due to signal 6
    Jan 9 16:18:42 rigel squid[5721]: Squid Parent: child process 5730 started

    Looking at the permission:

    /var/spool/squid --> 0755 permission

    squid -z
    --provides the same errors.

    /etc/squid/squid.conf
    cache mem 128
    cache_dir ufs /var/spool/squid 2000 16 256


    I had 1GB of memory. Also, I even changed ufs to diskd but no improvements.

    Any suggestions will be very much appreciated.

    SELinux is disabled also.

    Thanks.

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    4
    Hi.

    As I can see, squid is running as user "rigel"

    Run 'squid -z' as root to create swap directories
    chown rigel /var/spool/squid as user root

    /Kurre

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Posts
    8
    Quote Originally Posted by kurre
    Hi.

    As I can see, squid is running as user "rigel"

    Run 'squid -z' as root to create swap directories
    chown rigel /var/spool/squid as user root

    /Kurre

    No, rigel was the name of the computer and squid is running as squid user.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2006
    Posts
    4
    Hi.

    I think /var/spool is owned by root.
    Did you run 'squid -z' as root to create the swap?

    And if so, did you changed /var/spool/squid to be owned by squid?

    /Kurre

  6. #5
    Just Joined!
    Join Date
    Apr 2006
    Posts
    8
    Quote Originally Posted by kurre
    Hi.

    I think /var/spool is owned by root.
    Did you run 'squid -z' as root to create the swap?

    And if so, did you changed /var/spool/squid to be owned by squid?

    /Kurre
    Hello kurre,

    Thanks for your post.

    /var/spool was indeed owned by root. However, /var/spool/squid is owned by squid user.

    To make user I did the following:

    remove all the directories.then,

    #mkdir -p /var/spool/squid
    #mkdir -p /var/log/squid
    #chown -R squid.squid /var/spool/squid
    #chown -R squid.squid /var/log/squid
    #chmod 0750 /var/spool/squid
    #chmod 0750 /var/log/squid

    #squid -z
    2007/01/12 12:18:52| Creating Swap Directories
    FATAL: Failed to make swap directories /var/spool/squid: , (13) Permission denied for details.
    Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
    CPU Usage: 0.056 seconds = 0.048 user + 0.008 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 0


    Nothing seem to be progressing. What can u suggest?

    TIA

  7. #6
    Just Joined!
    Join Date
    Dec 2006
    Posts
    4
    Hi.

    Maybe squid -z runs as user squid.

    Test this as user root:

    rm -r /var/spool/squid
    chmod 777 /var/spool

    squid -z

    chmod 755 /var/spool

    /Kurre

  8. #7
    Just Joined!
    Join Date
    Jan 2007
    Posts
    12
    Create a user "squid" and give permission to the swap directories

    then squid -z as user squid to create swap directiries

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •