Many thanks Shot<br><br><div><span class="gmail_quote">On 7/20/05, <b class="gmail_sendername">Shot - Piotr Szotkowski</b> <<a href="mailto:shot@hot.pl">shot@hot.pl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello.<br><br>Brian Walker:<br><br>> brian@ubuntu:~$ psql -h localhost -U xxx template1<br>><br>> psql: FATAL: IDENT authentication failed for user "xxx"<br><br>By default, PostgreSQL accepts only the user that tries to establish
<br>the connection - in your case you should be able to log in as brian<br>(provided that you created the brian user in PostgreSQL before).<br><br>If you want to allow local connections as other users, you have to<br>sudoedit the /etc/postgresql/pg_hba.conf file and change the "ident
<br>sameuser" method to "md5" for "All other connections by UNIX sockets"<br>(and, possibly, for "All IPv4 connections from localhost" as well).<br><br>Remember to reload the settings afterwards
<br>with `sudo /etc/init.d/postgresql reload`.</blockquote><div><br>
Yes - I had to change the IPv4 as well, and then the connection worked.
Now to the next problem .... digging today to sort this out once and
for all. <br>
<br>
All the best<br>
<br>
Brian <br>
</div><br></div><br>