By changing the user that I login with to a super user, everything works. I don’t get the permission denied error.
However, I only want the users to read. Being set as a super user allows the odbc user to change the data.
My problem is now down to two security points:
How do I have a user with only read access (not a super user) and not be denied viewing the table data?
How do I control access with listen_address=’localhost, specific.ip.addresses’ and not use ‘*’?
Setting listen_address=’localhost, specific.ip.addresses’ does not work, I get call failed errors asking if the server is accepting tcp/ip connections on port 5432
From: Marc Fromm
Sent: Tuesday, March 29, 2011 1:23 PM
Subject: RE: [ODBC] first time odbc
By editing postgresql.conf and changing listen_address = ‘*’ and editing pg_hba.conf and adding host all all my.ip.address allowed me to connect to the postgresql data base with Microsoft access.
In access I can see the table and it fields, but if I try to use the table in a querry or view the table I get an error: permission denied for relation summer_finaid; error while executing the query (#7)
Also in the postgresql instead of listen_address=’*’ I tried listen_address=’localhost, my.ip.address’ but that failed to work.
How can I keep local host and only allow specific address? I don’t want to open it up to all with ‘*’
From: jsilberberg(at)mindspring(dot)com [mailto:jsilberberg(at)mindspring(dot)com]
Sent: Tuesday, March 29, 2011 11:13 AM
To: Marc Fromm; pgsql-odbc(at)postgresql(dot)org
Subject: Re: [ODBC] first time odbc
That's a vintage 02-Feb-2006 driver.
I use 8.04 from Dec-2009 and even that's getting a little stale. Why not try the 9.n drivers.
Could the port(s) be blocked / restricted between you and the server and is PostgreSQL SSL support enabled --
From: Marc Fromm
Sent: Mar 29, 2011 1:58 PM
Subject: [ODBC] first time odbc
Before learning there was an odbc list, I sent this post to the admin list.
I am running postgres on a red hat linux server.
User on windows computers would like to odbc to the postgres databases.
I downloaded the windows postgres odbc drivers from the following site and installed version “psqlodbc-08_01_0200” on the windows computer.
When I configure a “File Data Source” connection in access, I cannot connect to the postgresql database. I get the message, “A connection could not be made using the file data source parameters entered. Save non-verified file DSN?”
The parameters entered are:
Server: I entered the IP address of the server
User Name: I entered postgres
SSL Mode: prefer
Port: 5432 (which is the port used by postgres)
Do I need to configure the /etc/odbc.ini file? It is currently just a blank file.
Thanks for any help.
pgsql-odbc by date
|Next:||From: firstname.lastname@example.org||Date: 2011-03-29 22:34:12|
|Subject: Re: ODBC first time odbc|
|Previous:||From: Marc Fromm||Date: 2011-03-29 20:21:44|
|Subject: Re: first time odbc|