<div dir="ltr">Hi all,<div><br></div><div>I&#39;m currently having trouble with md5 auth on my current configuration, and having looked everywhere with no luck I&#39;m now asking for some help.</div><div><br></div><div>I was already able to use pgpool using &quot;trust&quot; auth mode on pgpool and backends but when switching to md5 mode I&#39;m unable to login as the following error message appears:</div><div><br></div><div>psql: ERROR:  &quot;MD5&quot; authentication with pgpool failed for user &quot;postgres&quot;</div><div><br></div><div>Looking at pgpool logs I found the following interesting lines:</div><div><br></div><div>(when booting pgpool):</div><div><br></div><div>pool_init_pool_passwd: couldn&#39;t open /etc/pgpool2/pool_passwd. reason: Permission denied<br></div><div><br></div><div>(Later, when trying to connect):</div><div>pool_init_pool_passwd: couldn&#39;t open /etc/pgpool2/pool_passwd. reason: Permission denied<br></div><div>pool_get_passwd: passwd_fd is NULL<br></div><div>&quot;MD5&quot; authentication with pgpool failed for user &quot;postgres&quot;<br></div><div><br></div><div>I double checked pgpool.cong, pool_hba.conf and pool_passwd and everything looked fine. Trying some brute-force I run pgpool as the root user and md5 auth works OK. Given this, I supposed the issue was with file permissions but I checked pool_passwd and was readable by the postgres user, which is whom own the pgpool process when md5 auth doesn&#39;t work (I&#39;m running pgpool as a &quot;service&quot; on Debian wheezy via /etc/init.d/pgpool start). I tried to confirm again that the postgres user is able to read pool_passwd and doing a &quot;sudo su -c &#39;cat /etc/pgpool2/pool_passwd&#39; postgres&quot; works ok.</div><div><br></div><div>TL;DR: When running pgpool as root md5 auth works, when not, md5 auth doesn&#39;t and pgpool complains &quot;permission_denied&quot; to pool_passwd despite having access to it.</div><div><br></div><div>Could anyone tell me please if I am missing something? Is there a way to debug this? BTW I&#39;m using pgpool provided by pgdg apt repository (<a href="https://wiki.postgresql.org/wiki/Apt">https://wiki.postgresql.org/wiki/Apt</a>)</div><div><br></div><div>Thanks!</div><div><br></div><div>Camilo</div></div>