Re: [squid-users] PAM-AUTH with passwd/shadow

From: Kareem Mahgoub <kareem@dont-contact.us>
Date: Wed, 21 Mar 2001 09:41:31 +0300

Thanks Henrik,
It worked perfectly. My mistake that I was reading 2 different mails in the
mailing list so I mixed things together.
Regards,
Kareem Mahgoub
----- Original Message -----
From: "Henrik Nordstrom" <hno@hem.passagen.se>
To: "Kareem Mahgoub" <kareem@tri.net.sa>
Cc: <squid-users@squid-cache.org>
Sent: Tuesday, March 20, 2001 11:28 PM
Subject: Re: [squid-users] PAM-AUTH with passwd/shadow

> /etc/pam.d/squid:
>
> auth required /lib/security/pam_pwd.so shadow nullok
> account required /lib/security/pam_pwdb.so
>
> /usr/local/bin/pam_auth must be SUID root
> chown root /usr/local/bin/pam_auth
> chmod u+s /usr/local/bin/pam_auth
>
> And if you have other users on this machine, you better make sure only
> Squid is allowed to execute pam_auth. This can be done by putting
> pam_auth in a directory where only the user Squid runs as has
> permissions..
>
> --
> Henrik Nordstrom
> Squid hacker
>
>
> Kareem Mahgoub wrote:
> >
> > Hi Guys,
> > I know it must be a repeated question, but i have read the FAQ and the
user
> > manual and the Mailing list but with no clue.
> > I am running squid-2.3-Stable4 on linux RH6.2
> > I installed PAM-auth from the auth-modules in the squid directory i
followed
> > what was mentioned in the Mailing list by adding the following 2 lines
in
> > the /etc/pam.conf
> > auth required /lib/security/pam_pwd.so shadow nullok
> > account required /lib/security/pam_pwdb.so
> > I installed the module as root and checked for the ownership and the
mode.
> > Also i have copied the file to /usr/local/squid/bin
> > when i am trying to authenticate by running it, it gives me the
following
> > #/usr/local/squid/bin/pam_auth
> > root "password"
> > ERR
> >
> > any body would guide me please???
> > Regards
> > Kareem Mahgoub
>
Received on Tue Mar 20 2001 - 23:43:47 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:45 MST