pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: list-pgsql-admin@news.cistron.nl
To: pgsql-admin@postgresql.org
Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
Date: Sat, 29 Jan 2005 17:16:38 +0000 (UTC)
Message-ID: <ctggdm$en0$2@news.cistron.nl> (raw)
References: <4001DEAF7DF9BD498B58B45051FBEA650207ABAA@25exch1.vicorpower.vicr.com>

In article <4001DEAF7DF9BD498B58B45051FBEA650207ABAA@25exch1.vicorpower.vicr.com>,
Goulet, Dick <DGoulet@vicr.com> wrote:
> Well, someone I can wholeheartedly agree with.  So it really does not
>matter who owns the binaries.  Once the right account gets hacked your
>had.  If they hack root your dead, if they hack postgres the database is
>had although the server may survive.  In either case the state of your
>backups is your saving grace or doom.

No, it's easier to hack postgres, as the database is running
as the postgres user. If you allow something like PgPerl, it's
even trivial. The PgPerl script runs as user postgres, and can
trojan e.g. the psql executable. The next time someone (perhaps
even root ... ) runs psql, they're 0wned.

Now it's not that bad an idea to install postgres as a non-root
user .. but use a DIFFERENT account to actually start and run
postgres. That way your binaries are protected.

E.g. install postgres as user 'pgbin', so that all binaries are
owned by 'pgbin', then run it as user 'postgres'.

Mike.




view thread (48+ messages)

Message-ID: <ctggdm$en0$2@news.cistron.nl>
Permalink:  ../ctggdm$en0$2@news.cistron.nl/
Also on:    postgresql.org/message-id/ctggdm$en0$2@news.cistron.nl

 · 

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: list-pgsql-admin@news.cistron.nl
  Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
  In-Reply-To: <ctggdm$en0$2@news.cistron.nl>
  References: <4001DEAF7DF9BD498B58B45051FBEA650207ABAA@25exch1.vicorpower.vicr.com> <ctggdm$en0$2@news.cistron.nl>

* 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