Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EAE8C476350; Tue, 22 Oct 2002 10:05:55 -0400 (EDT) Received: from saturn.internet-bg.net (saturn.internet-bg.net [212.124.64.2]) by postgresql.org (Postfix) with ESMTP id 5E5454760F6; Tue, 22 Oct 2002 10:05:53 -0400 (EDT) Received: from nesheff (ppp196.internet-bg.net [212.124.66.196]) by saturn.internet-bg.net (8.12.4/8.12.4) with ESMTP id g9ME2Qbv018666; Tue, 22 Oct 2002 17:02:28 +0300 Message-ID: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> From: "Igor Georgiev" To: Cc: Subject: Security question : Database access control Date: Tue, 22 Oct 2002 17:05:38 +0200 Organization: Alpha Soft Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C279ED.3E9ECDC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-RAVMilter-Version: 8.3.1(snapshot 20020108) (saturn) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/180 X-Sequence-Number: 6038 This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C279ED.3E9ECDC0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable 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=20 # 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=20= =20=20=20=20 # The same, over Unix-socket connections: local all trust or my nightmare a cygwin on Win 98 everybody can can access everything :-((= (( ------=_NextPart_000_001C_01C279ED.3E9ECDC0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
Is there any way to prevent superuser to a= cces the=20 database ?
I mean something like "GRANT /=20 REVOKE CONNECT" MECHANISM
 
I have no idea how to prevent root from ac= cess data=20 in one of this ways :
    root @ = linux:~#su=20 - postgres
    postgre= s @=20 linux:/usr/local/pgsql/bin$pg_dump ....
or
    edit pg_h= ba.conf=20
        # Al= low any=20 user on the local system to connect to any
   =20     # database under any username, but only via an IP=20 connection:
       =20 host        =20 all        =20 127.0.0.1     255.255.255.255   =20 trust     
      =  =20 # The same, over Unix-socket connections:
   =20     local       =20 all            =             &nb= sp;            =     =20 trust
or my nightmare a cygwin on Win 98 everybody can = can=20 access everything :-((((
 
 
------=_NextPart_000_001C_01C279ED.3E9ECDC0--