Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 67566476D12; Thu, 24 Oct 2002 23:04:54 -0400 (EDT) Received: from jester.senspire.com (CPE00508b028d7d-CM00803785c5e0.cpe.net.cable.rogers.com [24.103.51.175]) by postgresql.org (Postfix) with ESMTP id 244C6476C1A; Thu, 24 Oct 2002 23:04:26 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by jester.senspire.com (8.12.6/8.12.6) with ESMTP id g9MFQUPQ026013; Tue, 22 Oct 2002 11:26:32 -0400 (EDT) (envelope-from rbt@rbt.ca) Subject: Re: [HACKERS] Security question : Database access control From: Rod Taylor To: Igor Georgiev Cc: dima <_pppp@mail.ru>, PostgreSQL-development , pgsql-admin@postgresql.org In-Reply-To: <00e301c279e5$cb03f0e0$0b0546c0@alpha.bg> References: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> <3DB55D81.9040906@mail.ru> <00e301c279e5$cb03f0e0$0b0546c0@alpha.bg> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 22 Oct 2002 11:26:30 -0400 Message-Id: <1035300393.25823.23.camel@jester> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/246 X-Sequence-Number: 6104 On Tue, 2002-10-22 at 12:12, 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 ?? Next your going to ask what will stop root from stopping your PostgreSQL, compiling a second copy with authentication disabled and using your data directory as it's source :) If you want to prevent root from accomplishing these things, you're going to have to look to your kernel for help. The kernel must prevent root from changing users, starting / stopping applications, or touching certain filesystems. PostgreSQL will let you put a password on the data. But that only works if they actually try to use PostgreSQL to get at the data. There are a couple of tools which were designed to recover database data while the db is not running. -- Rod Taylor