Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 444D24763D0; Tue, 22 Oct 2002 11:35:10 -0400 (EDT) Received: from saturn.internet-bg.net (saturn.internet-bg.net [212.124.64.2]) by postgresql.org (Postfix) with ESMTP id 40BB04763CB; Tue, 22 Oct 2002 11:35:08 -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 g9MFVjbv030426; Tue, 22 Oct 2002 18:31:45 +0300 Message-ID: <012101c279e8$f6008d00$0b0546c0@alpha.bg> From: "Igor Georgiev" Cc: , References: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> <20021022142709.GA29891@wolff.to> Subject: Re: Security question : Database access control Date: Tue, 22 Oct 2002 18:34:57 +0200 Organization: Alpha Soft Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_011E_01C279F9.B8BFF280" 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/191 X-Sequence-Number: 6049 This is a multi-part message in MIME format. ------=_NextPart_000_011E_01C279F9.B8BFF280 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable > They can just read the raw database files as well.=20 wow I'm not sure how about this edit pg_hba.conf=20 # Allow any user on the local system to connect to any # database under any username local all trust su - posgres psql test -U dba or=20 pg_dump test > You have to be able to trust whoever has root access to the system, as we= ll as anyone who has > physical access to the system. ------=_NextPart_000_011E_01C279F9.B8BFF280 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable
> They can just read the raw database f= iles as=20 well.
wow I'm not sure
how about this
 
    edit pg_h= ba.conf=20
        # Allow any user on the local system to connect to=20 any
        # database under any=20 username
       =20 local       =20 all            =             &nb= sp;            =     =20 trust
 
su - posgres
psql test -U dba
or
pg_dump test
 
> You have to be able to trust whoever = has root=20 access to the system, as well as anyone who has
> physical access to = the=20 system.
------=_NextPart_000_011E_01C279F9.B8BFF280--