Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm attempting to run a squid3 proxy server with authentication for any user that has a login to the server.

I've followed these instructions, and I am prompted for a username and password when I enter the proxy details. Problem is it won't accept my root username and password or another account that I have. I am sure I'm entering the password correctly. I checked the log and I see :

1359436167.010 1281 174.XX.XX.XX TCP_DENIED/407 5219 GET root NONE/- text/html

Any ideas?

EDIT: Config file here: I pretty much followed the instructions on this blog.

Also just to ensure I understand this right: I have a local user 'BOMEz' with password 'password'. I can log into the system via putty over SSH. When Firefox I am prompted for the password I enter BOMEz and password and it just asks for the password again. I'd like to be able to just make Linux user accounts which will automatically have proxy access.

share|improve this question
Please post your cache.log and squid.conf. Upload them to and post the links here. – Eric Carvalho Feb 1 '13 at 11:33
Added paste of config file. – BOMEz Feb 4 '13 at 18:40
cache.log would be helpful. Try this: run /usr/lib/squid3/pam_auth, it should wait for input, type username password (real/valid username and password). It should output OK or ERR, maybe with an error message. – Eric Carvalho Feb 4 '13 at 19:39
Here is cache.log Also added some extra details to my question. – BOMEz Feb 6 '13 at 4:17
up vote 5 down vote accepted

I had the same problem. This solved it:

sudo chmod u+s /usr/lib/squid3/pam_auth

It seems pam_auth needs special permissions for other users. squid3 ran with the user "proxy". I switched to this user with su -u squid and tested /usr/lib/squid3/pam_auth. It returns OK if given username and password separated with a space when executed as the same user or root.

share|improve this answer
This was it! Thank you! – BOMEz Feb 8 '13 at 15:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.