Skip site navigation (1) Skip section navigation (2)

Re: Installing PostgreSQL as "postgress" versus "root" Debate!

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Uwe C(dot) Schroeder" <uwe(at)oss4u(dot)com>
Cc: PostgreSQL Admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
Date: 2005-01-13 21:44:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Uwe C. Schroeder wrote:
[ PGP not available, raw data follows ]
> Hash: SHA1
> On Thursday 13 January 2005 10:52 am, Goulet, Dick wrote:
> > Doug,
> >
> > 	OK, Assume that the binaries are installed under root, but a
> > hacker cracks PostGres, what is to stop him/her from trashing all of the
> > database files in the first place?  Their not owned by root.  Installing
> > malware, whether it's actual code or destroying/defacing files causes
> > similar if not identical problems.  At least their restricted to the
> > postgres user.  And in my book the executables are of zero value whereas
> > the data files, and their contained data, are of infinite value.  So
> > under your scheme we're protecting the least valuable part of the
> > system at the expense of the most valuable.
> So where is the difference? If all executables AND the data is under the 
> postgres account - an intruder hacking the postgres account would still be 
> able to destroy your data. 

To me the difference is that if you your postgres account is hacked and
you installed as root you can delete your /data and start over knowing
the rest of your install is OK.  If your binaries are owned by postgres,
you have to reinstall too.

Of course you might as well reinstall anyway but there is a difference
in knowing the state of the non-/data files.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to


pgsql-admin by date

Next:From: Uwe C. SchroederDate: 2005-01-13 22:47:01
Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
Previous:From: Scott MarloweDate: 2005-01-13 21:36:16
Subject: Re: Installing PostgreSQL as "postgress" versus "root"

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group