Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5E7F8475FB7; Tue, 22 Oct 2002 11:28:09 -0400 (EDT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id C3D99475F1C; Tue, 22 Oct 2002 11:28:08 -0400 (EDT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id A387BD602; Tue, 22 Oct 2002 08:28:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 4E9405C02; Tue, 22 Oct 2002 08:28:09 -0700 (PDT) Date: Tue, 22 Oct 2002 08:28:08 -0700 (PDT) From: Stephan Szabo To: Igor Georgiev Cc: dima <_pppp@mail.ru>, , Subject: Re: Security question : Database access control In-Reply-To: <00e301c279e5$cb03f0e0$0b0546c0@alpha.bg> Message-ID: <20021022081942.K87361-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/190 X-Sequence-Number: 6048 On Tue, 22 Oct 2002, Igor Georgiev wrote: > > > edit *pg_hba.conf * > > > # Allow any user on the local system to connect to any > > > # database under any username, but only via an IP connection: > > > host all 127.0.0.1 255.255.255.255 trust > > > # The same, over Unix-socket connections: > > > local all trust > > what about reading pg_hba.conf comments? > > local all md5 > > > > Ok, but my question actually isn't about pg_hba.conf comments, i read enough > but what will stop root from adding this lines or doing su - postgres ?? Not much really. But given that they have access to the raw data files, preventing them access to the server doesn't gain you that much if they really want to get the data.