473,487 Members | 2,452 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PG_HBA.conf still keeps complaining. I've done all I could imagine.

Hi,

I've just setup postgreSQL on my Fedora Core1 box. I installed
postgresql from rpm files.
When I try to connect to the postgresql server in pgmanage, or through
an ODBC from other windows machines I get a message:
"missing or erroneous pg_hba.conf file"

I set tcpip_socket = true in var/lib/pgsql/data/postgresql.conf
I added '-i' optin to etc/rc.d/init.d/postgresql as follows
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -o '-i '
-p
/usr/bin/postmaster start > /dev/null 2>&1
Here is my pg_hba.conf:

local all trust
host 10.1.9.0 255.255.255.0 trust
host 127.0.0.1 255.255.255.255 trust

Here is my /etc/hosts file:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 TESTBOX localhost.localdomain localhost
10.1.9.XX TESTBOX.localdomain TESTBOX

When I go Systems Settings -> Network in the Hosts tab I see
IP Name Alias
10.1.9.XX TESTBOX.localdomain TESTBOX

Where am I going wrong? I've looked at multiple postings and there is
always something about extra characters and such but I'm using vi
editor on a Fedora machine so it should be fine.
Please let me know if you have any ideas.
THanks in advance.
N.K.
Nov 23 '05 #1
2 1840
nk*****@optonline.net (Liza) writes:
When I try to connect to the postgresql server in pgmanage, or through
an ODBC from other windows machines I get a message:
"missing or erroneous pg_hba.conf file" Here is my pg_hba.conf: local all trust
host 10.1.9.0 255.255.255.0 trust
host 127.0.0.1 255.255.255.255 trust


What PG version was this? Recent versions expect an additional column
(username) in pg_hba.conf.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #2
tg*@sss.pgh.pa.us (Tom Lane) wrote in message news:<24**************@sss.pgh.pa.us>...
nk*****@optonline.net (Liza) writes:
When I try to connect to the postgresql server in pgmanage, or through
an ODBC from other windows machines I get a message:
"missing or erroneous pg_hba.conf file"

Here is my pg_hba.conf:

local all trust
host 10.1.9.0 255.255.255.0 trust
host 127.0.0.1 255.255.255.255 trust


What PG version was this? Recent versions expect an additional column
(username) in pg_hba.conf.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Thank you! You are right there is one more column. It all works now.
Thanks again.
N.K.
Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
9394
by: Angel Todorov | last post by:
Hello, sometimes I get a strange error from postgresql when I try to connect using ssl to the server: LOG: parse_hba: invalid syntax in pg_hba.conf file at line 46, token "hostssl" FATAL: ...
6
16657
by: David Nedrow | last post by:
I'm trying to set up the cyrus imap server using PostgreSQL as the authentication backend. Currently, the issue I'm having is that I'm unable to connect via psql on the loopback address...
0
1237
by: Tom Allison | last post by:
pg_hba.conf entry: host all all 192.168.0/24 md5 I get the error 2004-06-14 20:51:48 LOG: invalid entry in pg_hba.conf file at line 89, token...
3
8261
by: Si Chen | last post by:
Hello. It seems that every time I make a change to pg_hba.conf, I have to restart the database server for the new authentication to take effect. Is there a way to have the server use the new...
5
1930
by: Raymond O'Donnell | last post by:
Hello all, I've installed the new Win32 version of 8.0-beta1, running as a service. When I connect to it using pgAdmin III and attempt to list databases, I get an error: 'Column "datpath" does...
1
1392
by: David Parker | last post by:
We ran into a problem with pg_hba processing recently when we upgraded from 7.3.2 to 7.4.5. We use postgres as part of a network appliance that runs on Solaris 9/intel boxes. 7.4.5 runs fine in our...
4
13207
by: yashgt | last post by:
Hi, We have created a SQL server 2000 database. We observe that the transaction log keeps growing over time. We are now about to run out of space. We have been periodically shrinking the...
3
1988
by: smitty1e | last post by:
Just a fun exercise to unify some of the major input methods for a script into a single dictionary. Here is the output, given a gr.conf file in the same directory with the contents stated below: ...
2
1697
by: K. | last post by:
Hello! I would like to implement such funcionality: https://www.test.pl -I enter into this page without any problems (encrypted connection) when user tries to write: http://www.test.pl...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.