# FATAL: PAM authentication failed for user "xxxxxx"

**URL:** <https://forums.percona.com/t/fatal-pam-authentication-failed-for-user-xxxxxx/31302>\
**Category:** PostgreSQL\
**Created:** [June 28, 2024, 9:34am UTC](https://forums.percona.com/t/fatal-pam-authentication-failed-for-user-xxxxxx/31302 "2024-06-28T09:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jruffer](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jruffer/32/16566_2.png) [@jruffer](https://forums.percona.com/u/jruffer)\
**Post date:** [June 28, 2024, 9:34am UTC](https://forums.percona.com/t/fatal-pam-authentication-failed-for-user-xxxxxx/31302/1 "2024-06-28T09:34:36Z")

</div>

I’ve set up the user in an include file in pg\_hba.conf  
host database xxxxxxx all scram-sha-256

The user was created with  
create user xxxxx;  
alter user xxxxx with login password ‘yyyyyyyy’;

Other users I have set up in the past have worked OK.

I have double checked that the password is correct.

It shouldn’t even be using pam, should it?

What am I missing?

Jeremy

---

<div class="post-metadata">

**Author:** ![jruffer](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jruffer/32/16566_2.png) [@jruffer](https://forums.percona.com/u/jruffer)\
**Post date:** [June 28, 2024, 9:54am UTC](https://forums.percona.com/t/fatal-pam-authentication-failed-for-user-xxxxxx/31302/2 "2024-06-28T09:54:33Z")

</div>

I’ve found the problem. The username had some upper case characters.

Changing it to all lower case fixed it.
