LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-22-2009, 07:48 AM   #1
vale_ron
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Squid Error: Cache access denied


Hi all,
I am trying to configure a squid proxy to restrict access to it using NCSA, following the quick how-to founded on:
http://www.linuxhomenetworking.com/w...ess_with_Squid
In my squid.conf file I have added the following lines, after I created with htpasswd a pasword file with only a username and stored it in /etc/squid/squid_passwd:
Code:
# Added this to the auth_param section of squid.conf
#
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/squid_passwd
 
#
# Added this to the bottom of the ACL section of squid.conf
#
acl ncsa_users proxy_auth REQUIRED
 
#
# Added this at the top of the http_access section of squid.conf
#
http_access allow ncsa_users
But when I trying to surf with the proxy i receive the error message:
While trying to retrieve the URL: http://server.xxx/

The following error was encountered:

* Cache Access Denied.

Sorry, you are not currently allowed to request:

http://server.xxx/

from this cache until you have authenticated yourself.

Have you any idea to resolve the problem?
If you need I can post also the entire squid.conf file.
Thank you a lot
 
Old 03-23-2009, 04:46 AM   #2
vale_ron
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
No idea for help me ???
 
Old 03-23-2009, 11:06 AM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by vale_ron
The following error was encountered:

* Cache Access Denied.

Sorry, you are not currently allowed to request:
...
from this cache until you have authenticated yourself.
Well, the error message is clear enough. You haven't authenticated yourself (or at least squid thinks you haven't).

One problem with following howtos without understanding what they're doing is minor details can trip you up. Moreover, it's likely that no one here can vouch for the quality of the howto you followed, or whether you even followed the steps correctly. (Read: check your work.)

I haven't worked with NCSA authentication on squid, or I could probably speak more directly to your issue.
 
Old 03-23-2009, 01:26 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,211

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by vale_ron View Post
No idea for help me ???
Please don't post follow-ups like this. We all volunteer our time to help folks, so coming back saying "What, no help??", isn't very polite.

You say you created a "only a user name"....did you give the user a password? Is the authentication box coming up? What are you entering in it?
 
  


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
Squid Access Denied laroseengineer Linux - Server 9 02-29-2008 06:13 AM
Mozilla (Cache Access Denied) Eileen Linux - Networking 3 04-20-2006 07:31 AM
Squid url port 81 access-denied error steve@korehicom.com Linux - Networking 0 10-13-2005 09:55 AM
squid access denied hariiyer Linux - Networking 2 10-30-2004 09:55 AM
Denied access by squid hagenuk Linux - General 1 10-07-2001 10:45 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration