pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: Igor Georgiev <gory@alphasoft-bg.com>
Cc: dima <_pppp@mail.ru>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: [HACKERS] Security question : Database access control
Date: 22 Oct 2002 11:26:30 -0400
Message-ID: <1035300393.25823.23.camel@jester> (raw)
In-Reply-To: <00e301c279e5$cb03f0e0$0b0546c0@alpha.bg>
References: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg>
	<3DB55D81.9040906@mail.ru>
	<00e301c279e5$cb03f0e0$0b0546c0@alpha.bg>

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




view thread (13+ messages)  latest in thread

Message-ID: <1035300393.25823.23.camel@jester>
Permalink:  ../1035300393.25823.23.camel@jester/
Also on:    postgresql.org/message-id/1035300393.25823.23.camel@jester

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rbt@rbt.ca, gory@alphasoft-bg.com, _pppp@mail.ru, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Security question : Database access control
  In-Reply-To: <1035300393.25823.23.camel@jester>
  References: <001f01c279dc$7c7e1940$0b0546c0@alpha.bg> <3DB55D81.9040906@mail.ru> <00e301c279e5$cb03f0e0$0b0546c0@alpha.bg> <1035300393.25823.23.camel@jester>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox