LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-04-2008, 02:07 AM   #1
daniel.chu
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
why the squid can't access /home directory and files?


hi guys:
I have a centOS 5.0 server,with squid service.i was defined acl rule in squid.conf file.

Code:
# --user define--
acl badip src "/home/squid/blist"
http_access deny badip
but i trying to apply this rule,the squid show follow messege.
Code:
[root@Proxy squid]# service squid restart
Stopping squid:2008/12/04 13:38:10| strtokFile: /home/squid/blist not found
2008/12/04 13:38:14| aclParseAclLine: IGNORING invalid ACL: acl test dstdomain "/home/squid/blist"
Stopping squid:2008/12/04 13:38:14| Failed to acquire SSL certificate '(null)': error:0200100E:system library:fopen:Bad address
................    [ok]
Start squid:.       [ok]
[root@Proxy squid]#
but i cp blist file to /usr/local directory ,and modify ACL,
Code:
# --user define--
acl badip src "/usr/local/blist"
http_access deny badip
the squid is working.. why squid can't find in /home/squid/blist file? following is file policy.by the wany SSL certificate '(null)',what's wrong?

Code:
drwxr-xr-x 2 root root 4096 2007-03-30 bin
-rw-r--r-- 1 root root  183 12-04 14:43 blist
drwxr-xr-x 2 root root 4096 2007-03-30 etc
drwxr-xr-x 2 root root 4096 2007-03-30 games
drwxr-xr-x 2 root root 4096 2007-03-30 include
drwxr-xr-x 2 root root 4096 2007-03-30 lib
drwxr-xr-x 2 root root 4096 2007-03-30 libexec
drwxr-xr-x 2 root root 4096 2007-03-30 sbin
drwxr-xr-x 4 root root 4096 11-03 17:31 share
drwxr-xr-x 2 root root 4096 2007-03-30 src
Code:
[root@Proxy local]# ls /home -l
总计 24
drwx------ 3 zcudxz1 lcadmin 4096 11-03 17:53 lc
drwxr-xr-x 2 root    root    4096 12-04 11:54 squid
drwxr-xr-x 3 zcudxz1 lcadmin 4096 11-28 17:29 zcudxz1
Code:
[root@Proxy local]# ls /home/squid/ -l
总计 8
-rw-r--r-- 1 root root 26 12-04 11:49 blist
[root@Proxy local]#
 
Old 12-04-2008, 06:52 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Well this pretty much says it all

Code:
drwxr-xr-x 2 root    root    4096 12-04 11:54 squid
Change the ownership to the squid process, or at least make sure squid has proper access to the directory. I would assume squid requires write access to the directory.

Edit change the file ownership too.

Last edited by billymayday; 12-04-2008 at 07:06 PM.
 
  


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
programs have no access to home directory. SnowSurfAir Linux - Software 4 07-14-2005 12:05 AM
Unable to access home directory zillah Solaris / OpenSolaris 50 07-07-2005 07:39 AM
home directory files gone, hidden files remain Grasshopper Linux - Security 12 04-10-2005 08:23 PM
Others should not access my home directory. u4u Linux - General 3 01-16-2005 09:28 AM
Access denied to 'Home' directory aviceda Linux - Newbie 2 11-07-2003 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:45 PM.

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