LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   SQUID user & password (https://www.linuxquestions.org/questions/linux-security-4/squid-user-and-password-433593/)

p_test 04-10-2006 02:39 AM

SQUID user & password
 
Hi

I have configured squid on one of my machines. I want to give access to internet to the users on the basis of username and passwords. When ever someone tries to use the net… he be prompted for a username & a password. And then the user mey be granted permissions based on the useraname & password. How can we implement this ???? Help

Regards

~=gr3p=~ 04-10-2006 03:17 AM

http://www.squid-cache.org/Doc/FAQ/FAQ-23.html

Use pam_auth module for authentication. In redhat systems located here:

chmod u+s /usr/lib/squid/pam_auth

So in squid.conf it will be:

auth_param basic program /usr/lib/squid/pam_auth

Also create a file if it doesn't exist called /etc/pam.d/squid containing:
Code:

#%PAM-1.0
auth            required        pam_stack.so service=system-auth
account        required        pam_stack.so service=system-auth



All times are GMT -5. The time now is 05:27 PM.