SQUID: Cache Access Denied

Need help.

When some users try to access a page on the website using ELINKS browser from the command line they get this message:

Cache Access Denied.

Sorry, you are not currently allowed to request http://www.google.com from this cache until you have authenticated yourself.

What’s going on here and how can I solve this?

Take note:

The user can login with no problem on GUI such as Microsoft Edge, Google Chrome, and Firefox Mozilla browsers.

Here’s the simple config on SQUID.CONF

  • auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/squid4

  • acl auth_users proxy_auth user1 user2

  • acl AccessTime time MFW 08:00-15:00

  • http_access allow auth_users AccessTime

  • http_access deny auth_users

Regards,

Omar

The username and password can be stored in the configuration file for elinks.

1 Like

Hi, joebeasley,

First of all, thank you so much for your help. I couldn’t have done it without your great help. I appreciate it.

I have only one question. Let’s say if there are multiple users, you know, instead of I’m gonna put their usernames and passwords in “/etc/elinks.conf” they can easily go and login at the command prompt to open the Elinks browser with a certain command.

set protocol.http.proxy.user = "user"
set protocol.http.proxy.passwd = "pass"

Regards,
Omar

/etc/elinks.conf would be global for the system. Individual users would use $HOME/.elinks/elinks.conf.

Got it :slight_smile: Cheers!