- Detroit CEOs time valued at $0/hr
- My promise to be a better driver
- Propane tanker crash
- Free Dr. Pepper for everyone!
- 10 reasons why you should use Mozy for your computer backups
- Getting Yammer to work with IM on Google Apps for your domain
- Free Online Budgeting with Quicken Online!
- Still loving American Express
- AWS Security Whitepaper
- Performance increase with Amazon's EBS (persistent storage)
Using PAM with http auth
Submitted by altj on Thu, 12/06/2007 - 17:00
I was getting this error on one of my ubuntu linux installation (running apache2 with libapache2-mod-auth-pam installed)
PAM: user 'username' - not authenticated: Authentication failure
It took some digging around but I was able to fix it by making one change...
edit /etc/group and add www-data to the shadow group.
There are security implications to this. Beware! It gives the www-data user read access to the shadow password file (which contains password hashes.)
My apache config has these lines in it:
AuthPAM_Enabled on
AuthType Basic
AuthName "Authentication name here"
Require valid-user
Yay! it works. It's a temporary fix until I get a central LDAP server setup to handle all authentication.

Post new comment