Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CE6031337B67 for ; Wed, 30 Mar 2011 01:25:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 49656-02 for ; Wed, 30 Mar 2011 04:24:54 +0000 (UTC) X-Greylist: delayed 00:05:15.691151 by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 768A41337B47 for ; Wed, 30 Mar 2011 01:24:54 -0300 (ADT) Received: from imladris.finner.de (dslb-178-001-157-150.pools.arcor-ip.net [178.1.157.150]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MURVP-1QUwxq0qVH-00RHh1; Wed, 30 Mar 2011 06:24:53 +0200 Received: from localhost (unknown [127.0.0.1]) by imladris.finner.de (Invenius IXMOSS aio 1.0) with ESMTP id 586BD7B848 for ; Wed, 30 Mar 2011 04:24:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new/clamav at Invenius IXMOSS finner.de Received: from imladris.finner.de ([127.0.0.1]) by localhost (imladris.finner.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ppzZXQONzDCX; Wed, 30 Mar 2011 06:24:29 +0200 (CEST) Received: from isengard.finner.de (isengard.finner.de [192.168.14.20]) by imladris.finner.de (Invenius IXMOSS aio 1.0) with ESMTP id 6653E7B846; Wed, 30 Mar 2011 06:24:28 +0200 (CEST) Date: Wed, 30 Mar 2011 06:24:27 +0200 From: Frank Finner Cc: "pgsql-odbc@postgresql.org" Subject: Re: ODBC first time odbc Message-ID: <20110330062427.2a3c9a7d@isengard.finner.de> In-Reply-To: <93361C67E4EE844A80935863A4FF4B6C04E60DD3@Exch2010MB-2.univ.dir.wwu.edu> References: <16057942.1301438053137.JavaMail.root@elwamui-polski.atl.sa.earthlink.net> <93361C67E4EE844A80935863A4FF4B6C04E60DD3@Exch2010MB-2.univ.dir.wwu.edu> Reply-To: postgresql@finner.de Organization: Familie Finner X-Mailer: Claws Mail 3.3.1 (GTK+ 2.10.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:HYGq9L2k351SgQYQKwGCBB82FOZsSpZFRn7q6YDzpgw VUN+APLDi7RZiPsB+Z+T0e0Mk/4znEhJsZ1IguDtpcWIF7O5Kj HLWPsy35/o/rv0fmhcGrfo5MPwNWQVMr+Wc0KUWSbqgtF6xGMW 6elv12RR+kornEblIx2vKjij8jyHtPjDfThEHiNXolUPPA9bJi z4uQPGtOw+ue783I0WOiw== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.879 tagged_above=-10 required=5 tests=BAYES_00=-1.9, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201103/31 X-Sequence-Number: 10622 The listen_address is the server's listening address, not a filter for client addresses. This is only relevant, if the server has different addresses, maybe on different interfaces, and you want for example only one interface to listen to database access requests. IMHO it is usually not a security risk to set it to '*'. Regards, Frank. On Wed, 30 Mar 2011 03:01:10 +0000 Marc Fromm wrote: > I figured out the permissions problem, by removing superuser and > granting select. Now the users can view the data and not alter it. >=20 >=20 >=20 > I have one last step--locking access down by ip address. >=20 > Even though I set only one specific ip address in the pg_hba.conf > file, I can odbc to postgresql database from a variety of ip > addresses on different computers. The postgresql.conf file still has > listen_address=3D'*'. If I set listen_address=3D'one.ip.address' I get > connection errors. Is setting listen_address=3D'*' a security risk? >=20 >=20 >=20 > thanks >=20 > ________________________________ > From: jsilberberg@mindspring.com [jsilberberg@mindspring.com] > Sent: Tuesday, March 29, 2011 3:34 PM > To: Marc Fromm; pgsql-odbc@postgresql.org > Subject: Re: [ODBC] ODBC first time odbc >=20 >=20 >=20 >=20 > Okay, >=20 >=20 >=20 > You may want to start at the index and read the manual. >=20 >=20 >=20 > But I think you need to "grant select ................" to your > ODBC user for your permissions issue. >=20 >=20 >=20 > http://www.postgresql.org/docs/9.0/static/sql-grant.html >=20 >=20 >=20 > JMS.. >=20 >=20 >=20 >=20 >=20 >=20 > -----Original Message----- > From: Marc Fromm > Sent: Mar 29, 2011 5:13 PM > To: "pgsql-odbc@postgresql.org" > Subject: [ODBC] ODBC first time odbc >=20 > By changing the user that I login with to a super user, everything > works. I don=E2=80=99t get the permission denied error. However, I only w= ant > the users to read. Being set as a super user allows the odbc user to > change the data. >=20 > 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? >=20 > How do I control access with listen_address=3D=E2=80=99localhost, > specific.ip.addresses=E2=80=99 and not use =E2=80=98*=E2=80=99? Setting > listen_address=3D=E2=80=99localhost, specific.ip.addresses=E2=80=99 does = not work, I > get call failed errors asking if the server is accepting tcp/ip > connections on port 5432 >=20 > Thanks >=20 >=20 > From: Marc Fromm > Sent: Tuesday, March 29, 2011 1:23 PM > To: 'jsilberberg@mindspring.com' > Cc: pgsql-odbc@postgresql.org > Subject: RE: [ODBC] first time odbc >=20 > By editing postgresql.conf and changing listen_address =3D =E2=80=98*=E2= =80=99 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. >=20 > 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) >=20 > Any ideas? >=20 > Also in the postgresql instead of listen_address=3D=E2=80=99*=E2=80=99 I = tried > listen_address=3D=E2=80=99localhost, my.ip.address=E2=80=99 but that fail= ed to work. > How can I keep local host and only allow specific address? I don=E2=80=99t > want to open it up to all with =E2=80=98*=E2=80=99 >=20 > Thanks >=20 >=20 > From: jsilberberg@mindspring.com [mailto:jsilberberg@mindspring.com] > Sent: Tuesday, March 29, 2011 11:13 AM > To: Marc Fromm; pgsql-odbc@postgresql.org > Subject: Re: [ODBC] first time odbc >=20 >=20 >=20 >=20 > Why, >=20 >=20 >=20 > That's a vintage 02-Feb-2006 driver. >=20 >=20 >=20 > I use 8.04 from Dec-2009 and even that's getting a little > stale. Why not try the 9.n drivers. >=20 >=20 >=20 > Could the port(s) be blocked / restricted between you and the > server and is PostgreSQL SSL support enabled -- >=20 > http://www.postgresql.org/docs/9.0/static/ssl-tcp.html >=20 >=20 >=20 > JMS >=20 >=20 >=20 > ----------------------------------- >=20 >=20 > -----Original Message----- > From: Marc Fromm > Sent: Mar 29, 2011 1:58 PM > To: "pgsql-odbc@postgresql.org" > Subject: [ODBC] first time odbc >=20 > Before learning there was an odbc list, I sent this post to the admin > list. >=20 > I am running postgres on a red hat linux server. > postgresql-python-8.1.23-1.el5_6.1 > postgresql-test-8.1.23-1.el5_6.1 > postgresql-libs-8.1.23-1.el5_6.1 > postgresql-docs-8.1.23-1.el5_6.1 > postgresql-contrib-8.1.23-1.el5_6.1 > postgresql-8.1.23-1.el5_6.1 > postgresql-pl-8.1.23-1.el5_6.1 > postgresql-odbc-08.01.0200-3.1 > postgresql-jdbc-8.1.407-1jpp.4 > postgresql-server-8.1.23-1.el5_6.1 > postgresql-tcl-8.1.23-1.el5_6.1 >=20 > 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 =E2=80=9Cpsqlodbc-08_01_0200=E2=80= =9D on the > windows computer. > http://ftp9.us.postgresql.org/pub/mirrors/postgresql/odbc/versions/msi/ >=20 > When I configure a =E2=80=9CFile Data Source=E2=80=9D connection in acces= s, I cannot > connect to the postgresql database. I get the message, =E2=80=9CA connect= ion > could not be made using the file data source parameters entered. Save > non-verified file DSN?=E2=80=9D The parameters entered are: Database: > database_name Server: I entered the IP address of the server User > Name: I entered postgres Password: > SSL Mode: prefer > Port: 5432 (which is the port used by postgres) >=20 > Do I need to configure the /etc/odbc.ini file? It is currently just a > blank file. >=20 > Thanks for any help. >=20 > Marc >=20 --=20 Frank Finner K=C3=B6pfchenstra=C3=9Fe 36 57072 Siegen