Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F08FE4763BF for ; Fri, 17 Jan 2003 22:33:27 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 4AFD247632B for ; Fri, 17 Jan 2003 22:33:27 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h0I3XR5u020903; Fri, 17 Jan 2003 22:33:27 -0500 (EST) To: hubert baumgartner Cc: pgsql-admin@postgresql.org Subject: Re: security In-reply-to: References: Comments: In-reply-to hubert baumgartner message dated "Sat, 18 Jan 2003 00:16:02 +0100" Date: Fri, 17 Jan 2003 22:33:27 -0500 Message-ID: <20902.1042860807@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/199 X-Sequence-Number: 7041 hubert baumgartner writes: > i have a few security concerns about postgres database and would like > to know if there is a possibility to compile postgres a way he only > accepts password athentication , and ignores the pg_hba.conf file .... > any ideas ? I suppose you could rip all the auth methods except password out of the code ... but I cannot imagine a more complete waste of time. If someone has write access to the pg_hba.conf file, then they have already broken into your postgres account or your root account. The game is over; there isn't anything in your database that they can't read, change, or delete. Even more to the point, there's nothing stopping them from changing all the database passwords. What makes you think that password authentication is one iota more secure than any other method, under such conditions? regards, tom lane