<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: psql: FATAL:  Ident authentication failed for user &quot;username&quot; Error and Solution</title> <atom:link href="http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: ciotog</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-64340</link> <dc:creator>ciotog</dc:creator> <pubDate>Fri, 11 Nov 2011 13:35:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-64340</guid> <description>Felicia is exactly right, following this article is a potential security risk for your database. Use with caution!</description> <content:encoded><![CDATA[<p>Felicia is exactly right, following this article is a potential security risk for your database. Use with caution!</p> ]]></content:encoded> </item> <item><title>By: Nathan</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-59985</link> <dc:creator>Nathan</dc:creator> <pubDate>Tue, 14 Jun 2011 04:31:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-59985</guid> <description>Why restart the service and kick everyone out? Just reload the config file via:
pg_ctl reload</description> <content:encoded><![CDATA[<p>Why restart the service and kick everyone out? Just reload the config file via:</p><p>pg_ctl reload</p> ]]></content:encoded> </item> <item><title>By: umpirsky</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-59622</link> <dc:creator>umpirsky</dc:creator> <pubDate>Wed, 25 May 2011 18:49:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-59622</guid> <description>Make sure to put in password instead trusted, and check top line, it usually have separate line for default user. Check config twice!</description> <content:encoded><![CDATA[<p>Make sure to put in password instead trusted, and check top line, it usually have separate line for default user. Check config twice!</p> ]]></content:encoded> </item> <item><title>By: Rossg</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-57245</link> <dc:creator>Rossg</dc:creator> <pubDate>Wed, 13 Apr 2011 00:42:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-57245</guid> <description>If you are on Ubuntu it will be /etc/postgres/8.4/main/pg_dba.conf</description> <content:encoded><![CDATA[<p>If you are on Ubuntu it will be /etc/postgres/8.4/main/pg_dba.conf</p> ]]></content:encoded> </item> <item><title>By: Ramanathan</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-54717</link> <dc:creator>Ramanathan</dc:creator> <pubDate>Thu, 06 Jan 2011 15:26:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-54717</guid> <description>Hi Paul,
If you had installed pgsql using *.bin file. it will be installed in /opt/Postgres/* by default. I think this file will be in /opt/P***/8.4/data/. Better you find this file uinsg “find ./ -name pg_hba.conf” in installed location.
thanks Ramanathan</description> <content:encoded><![CDATA[<p>Hi Paul,</p><p>If you had installed pgsql using *.bin file. it will be installed in /opt/Postgres/* by default. I think this file will be in /opt/P***/8.4/data/. Better you find this file uinsg “find ./ -name pg_hba.conf” in installed location.</p><p>thanks Ramanathan</p> ]]></content:encoded> </item> <item><title>By: paul</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-54334</link> <dc:creator>paul</dc:creator> <pubDate>Sat, 01 Jan 2011 11:58:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-54334</guid> <description>I&#039;m using postgresql version 8.4.5. I dont have /var/lib/pgsql/data/pg_hba.conf  file. where is file located in this version?</description> <content:encoded><![CDATA[<p>I&#8217;m using postgresql version 8.4.5. I dont have /var/lib/pgsql/data/pg_hba.conf  file. where is file located in this version?</p> ]]></content:encoded> </item> <item><title>By: Rod McLaughlin</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-53323</link> <dc:creator>Rod McLaughlin</dc:creator> <pubDate>Wed, 22 Dec 2010 23:58:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-53323</guid> <description>I found the file at /etc/postgresql/8.4/main/pg_hba.conf
I had to comment out most of the lines:
# local   all         all                               ident
# host    all         all         127.0.0.1/32          md5
# host    all         all         ::1/128               md5
and add:
local   all     all     trust
host    all     all     127.0.0.1/32    trust
at the bottom of pg_hba.conf
save,
sudo su - postgres
service postgresql restart
then I could do stuff (Rails 3 with RSpec)</description> <content:encoded><![CDATA[<p>I found the file at /etc/postgresql/8.4/main/pg_hba.conf<br
/> I had to comment out most of the lines:<br
/> # local   all         all                               ident<br
/> # host    all         all         127.0.0.1/32          md5<br
/> # host    all         all         ::1/128               md5<br
/> and add:<br
/> local   all     all     trust<br
/> host    all     all     127.0.0.1/32    trust<br
/> at the bottom of pg_hba.conf</p><p>save,<br
/> sudo su &#8211; postgres<br
/> service postgresql restart<br
/> then I could do stuff (Rails 3 with RSpec)</p> ]]></content:encoded> </item> <item><title>By: Anthalamus</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-49577</link> <dc:creator>Anthalamus</dc:creator> <pubDate>Fri, 17 Sep 2010 14:55:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-49577</guid> <description>worked like a charm thanks!</description> <content:encoded><![CDATA[<p>worked like a charm thanks!</p> ]]></content:encoded> </item> <item><title>By: Anand</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-49533</link> <dc:creator>Anand</dc:creator> <pubDate>Wed, 15 Sep 2010 08:42:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-49533</guid> <description>Thanks, its worked for me. Saved my time.</description> <content:encoded><![CDATA[<p>Thanks, its worked for me. Saved my time.</p> ]]></content:encoded> </item> <item><title>By: felicia</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-48059</link> <dc:creator>felicia</dc:creator> <pubDate>Fri, 25 Jun 2010 19:36:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-48059</guid> <description>trust means to allow with no password.  The command in the example will prompt for a password, but hitting enter will get you right in.  You might want to use &quot;password&quot; instead of &quot;trust.&quot;  See http://developer.postgresql.org/pgdocs/postgres/auth-pg-hba-conf.html.</description> <content:encoded><![CDATA[<p>trust means to allow with no password.  The command in the example will prompt for a password, but hitting enter will get you right in.  You might want to use &#8220;password&#8221; instead of &#8220;trust.&#8221;  See <a
href="http://developer.postgresql.org/pgdocs/postgres/auth-pg-hba-conf.html" rel="nofollow">http://developer.postgresql.org/pgdocs/postgres/auth-pg-hba-conf.html</a>.</p> ]]></content:encoded> </item> <item><title>By: aaxc</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-47684</link> <dc:creator>aaxc</dc:creator> <pubDate>Tue, 08 Jun 2010 06:28:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-47684</guid> <description>hmm... this is not working for me ... any other ideas?</description> <content:encoded><![CDATA[<p>hmm&#8230; this is not working for me &#8230; any other ideas?</p> ]]></content:encoded> </item> <item><title>By: lamachine</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-46715</link> <dc:creator>lamachine</dc:creator> <pubDate>Fri, 02 Apr 2010 22:09:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-46715</guid> <description>@Vivek Gite
Your description is causing an error:
FATAL: missing or erroneous pg_hba.conf file
this is coming from missing column:
host    all     127.0.0.1/32    trust
Here is what the working line looks like
host    all       all     127.0.0.1/32          trust</description> <content:encoded><![CDATA[<p>@Vivek Gite<br
/> Your description is causing an error:<br
/> FATAL: missing or erroneous pg_hba.conf file<br
/> this is coming from missing column:<br
/> host    all     127.0.0.1/32    trust<br
/> Here is what the working line looks like<br
/> host    all       all     127.0.0.1/32          trust</p> ]]></content:encoded> </item> <item><title>By: kangu</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-45849</link> <dc:creator>kangu</dc:creator> <pubDate>Fri, 05 Feb 2010 16:49:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-45849</guid> <description>Thanks saved one life here!</description> <content:encoded><![CDATA[<p>Thanks saved one life here!</p> ]]></content:encoded> </item> <item><title>By: Saeed</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-44701</link> <dc:creator>Saeed</dc:creator> <pubDate>Mon, 16 Nov 2009 08:05:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-44701</guid> <description>Thank You! saved me once :-)</description> <content:encoded><![CDATA[<p>Thank You! saved me once :-)</p> ]]></content:encoded> </item> <item><title>By: Anibal Leite</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-43503</link> <dc:creator>Anibal Leite</dc:creator> <pubDate>Mon, 31 Aug 2009 15:55:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-43503</guid> <description>Tank you!</description> <content:encoded><![CDATA[<p>Tank you!</p> ]]></content:encoded> </item> <item><title>By: Wladek</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-41307</link> <dc:creator>Wladek</dc:creator> <pubDate>Wed, 22 Apr 2009 19:50:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-41307</guid> <description>Hi, I have the same problem. I&#039;ve created a program in perl, which contains connector to database DBI, and driver DBD::Pg. But I have still the same answer Fatal: Ident Authetification failed for user postgres...
this is the connector:
my $dbh = DBI-&gt;connect(&quot;DBI:Pg:dbname=test;host=localhost&quot;, &quot;postgres&quot;, &quot;&quot;, {&#039;RaiseError&#039; =&gt; 1});
please help...</description> <content:encoded><![CDATA[<p>Hi, I have the same problem. I&#8217;ve created a program in perl, which contains connector to database DBI, and driver DBD::Pg. But I have still the same answer Fatal: Ident Authetification failed for user postgres&#8230;<br
/> this is the connector:<br
/> my $dbh = DBI-&gt;connect(&#8220;DBI:Pg:dbname=test;host=localhost&#8221;, &#8220;postgres&#8221;, &#8220;&#8221;, {&#8216;RaiseError&#8217; =&gt; 1});</p><p>please help&#8230;</p> ]]></content:encoded> </item> <item><title>By: Camitux</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-40590</link> <dc:creator>Camitux</dc:creator> <pubDate>Wed, 04 Mar 2009 03:04:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-40590</guid> <description>Hey
Tanks</description> <content:encoded><![CDATA[<p>Hey<br
/> Tanks</p> ]]></content:encoded> </item> <item><title>By: himanshu</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-40538</link> <dc:creator>himanshu</dc:creator> <pubDate>Sun, 01 Mar 2009 12:18:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-40538</guid> <description>Hi, its very urgent.
I m continuously getting below error, while running JSP file in jakarta-tomcat.
PSQLException: FATAL: Ident authentication failed for user &quot;root&quot;
I am trying to connect to a database &#039;bedrock&#039;. I am able to login &amp; see the DB by   &#039;psql -d bedrock -U root&#039; from cmd-prompt. But the same does not happen from JSP file. Why is it so?? Please help me, its been 5 days struggling like mads..........</description> <content:encoded><![CDATA[<p>Hi, its very urgent.<br
/> I m continuously getting below error, while running JSP file in jakarta-tomcat.<br
/> PSQLException: FATAL: Ident authentication failed for user &#8220;root&#8221;</p><p>I am trying to connect to a database &#8216;bedrock&#8217;. I am able to login &amp; see the DB by   &#8216;psql -d bedrock -U root&#8217; from cmd-prompt. But the same does not happen from JSP file. Why is it so?? Please help me, its been 5 days struggling like mads&#8230;&#8230;&#8230;.</p> ]]></content:encoded> </item> <item><title>By: andrew toth</title><link>http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/#comment-39964</link> <dc:creator>andrew toth</dc:creator> <pubDate>Thu, 22 Jan 2009 21:36:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1464#comment-39964</guid> <description>I did the modifications, and get an error message (pg version 8.3):
psql: FATAL:  missing or erroneous pg_hba.conf file
HINT:  See server log for details.</description> <content:encoded><![CDATA[<p>I did the modifications, and get an error message (pg version 8.3):<br
/> psql: FATAL:  missing or erroneous pg_hba.conf file<br
/> HINT:  See server log for details.</p> ]]></content:encoded> </item> </channel> </rss>
