# Pam authentication question

**URL:** <https://www.ruby-forum.com/t/pam-authentication-question/191211>\
**Category:** NGINX\
**Created:** [July 7, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/pam-authentication-question/191211 "2010-07-07T16:01:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antoine\_Nguyen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@Antoine\_Nguyen](https://www.ruby-forum.com/u/Antoine_Nguyen)\
**Post date:** [July 7, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/pam-authentication-question/191211/1 "2010-07-07T16:01:22Z")

</div>

Hi list,

I’m trying to setup PAM authentication for nginx and I’m wondering if it  
is possible to authenticate using pam\_unix.so…

Here is the content of my /etc/pam.d/nginx file:  
@include common-auth  
@include common-account

In auth.log, I see some errors:  
Jul 7 12:39:14 eucalyptus unix\_chkpwd[1312]: check pass; user unknown  
Jul 7 12:39:14 eucalyptus unix\_chkpwd[1312]: password check failed for  
user (tonio)  
Jul 7 12:39:14 eucalyptus ker process: pam\_unix(nginx:auth):  
authentication failure; logname= uid=33 euid=33 tty= ruser= rhost=  
user=tonio

But this is not helping a lot.

Maybe some of you have an answer for me? 🙂

Thanks,

Antoine Nguyen.
