Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 38AEF476301; Tue, 22 Oct 2002 11:17:34 -0400 (EDT) Received: from saturn.internet-bg.net (saturn.internet-bg.net [212.124.64.2]) by postgresql.org (Postfix) with ESMTP id E49E447631B; Tue, 22 Oct 2002 11:17:31 -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 g9MF94bv027797; Tue, 22 Oct 2002 18:09:05 +0300 Message-ID: <00e301c279e5$cb03f0e0$0b0546c0@alpha.bg> From: "Igor Georgiev" To: "dima" <_pppp@mail.ru> Cc: , References: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> <3DB55D81.9040906@mail.ru> Subject: Re: Security question : Database access control Date: Tue, 22 Oct 2002 18:12:16 +0200 Organization: Alpha Soft Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E0_01C279F6.8DA1C4A0" 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/187 X-Sequence-Number: 6045 This is a multi-part message in MIME format. ------=_NextPart_000_00E0_01C279F6.8DA1C4A0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable > > 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= =20=20=20=20=20 > > # The same, over Unix-socket connections: > > local all trust > what about reading pg_hba.conf comments? > local all md5 >=20 Ok, but my question actually isn't about pg_hba.conf comments, i read enou= gh but what will stop root from adding this lines or doing su - postgres ?? ------=_NextPart_000_00E0_01C279F6.8DA1C4A0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
&g= t;=20 >     edit *pg_hba.conf *
>=20 >         # Allow any user on th= e=20 local system to connect to any
>=20 >         # database under any= =20 username, but only via an IP connection:
>=20 >        =20 host        =20 all        =20 127.0.0.1     255.255.255.255   =20 trust    
>=20 >         # The same, over=20 Unix-socket connections:
>=20 >        =20 local       =20 all            =             &nb= sp;            =     =20 trust
> what about reading pg_hba.conf=20 comments?
>          &nb= sp;=20 local   =20 all            =             &nb= sp;            =         =20 md5
>
Ok, but  my question actually isn't about pg_hba.conf comments, = i read=20 enough
but what will stop root from adding this l= ines or=20 doing su - postgres ??
------=_NextPart_000_00E0_01C279F6.8DA1C4A0--