Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6B345476102 for ; Tue, 22 Oct 2002 10:18:10 -0400 (EDT) Received: from wolff.to (unknown [66.93.197.35]) by postgresql.org (Postfix) with SMTP id 8538B476099 for ; Tue, 22 Oct 2002 10:18:06 -0400 (EDT) Received: (qmail 29971 invoked by uid 500); 22 Oct 2002 14:27:09 -0000 Date: Tue, 22 Oct 2002 09:27:09 -0500 From: Bruno Wolff III To: Igor Georgiev Cc: pgsql-admin@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: Security question : Database access control Message-ID: <20021022142709.GA29891@wolff.to> Mail-Followup-To: Igor Georgiev , pgsql-admin@postgresql.org, pgsql-hackers@postgresql.org References: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/183 X-Sequence-Number: 6041 On Tue, Oct 22, 2002 at 17:05:38 +0200, Igor Georgiev wrote: > Is there any way to prevent superuser to acces the database ? > I mean something like "GRANT / REVOKE CONNECT" MECHANISM > > I have no idea how to prevent root from access data in one of this ways : > root @ linux:~#su - postgres > postgres @ linux:/usr/local/pgsql/bin$pg_dump .... > or > 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 > or my nightmare a cygwin on Win 98 everybody can can access everything :-(((( They can just read the raw database files as well. You have to be able to trust whoever has root access to the system, as well as anyone who has physical access to the system.