pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dick Davies <rasputnik@hellooperator.net>
To: Dawid Kuroczko <qnex42@gmail.com>
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
Date: Thu, 13 Jan 2005 18:16:32 +0000
Message-ID: <20050113181631.GQ2717@lb.tenfour> (raw)
In-Reply-To: <758d5e7f050113044119890a53@mail.gmail.com>
References: <4001DEAF7DF9BD498B58B45051FBEA650207AAD3@25exch1.vicorpower.vicr.com>
	<41E5FE80.8080402@commandprompt.com>
	<758d5e7f05011304065d7e56a0@mail.gmail.com>
	<20050113122041.GG2717@lb.tenfour>
	<758d5e7f050113044119890a53@mail.gmail.com>

* Dawid Kuroczko <qnex42@gmail.com> [0151 12:51]:
> On Thu, 13 Jan 2005 12:20:41 +0000, Dick Davies
> <rasputnik@hellooperator.net> wrote:
> > > But only if either setuid root or executed by root.  Hey, on my
> > > system even /bin/sh is owned by root; it would be funny of it
> > > executed as root
> > C'mon folks, the guy obviously made a booboo - no need to rub his
> > nose in it...
> 
> I apologize if it felt like it. 

Not really, i just thought the whole list would be joining in before long.

>  Anyway, I've been thinking about it a bit;
> if pgsql files are owned by pgsql and some BAD user with too high
> privileges (say, plperlU or other unrestricted access), she can modify
> database files (like remove everything from data directory, etc.), and
> it matters little if files are owned by root or postgres -- the database
> data is owned by postgres.

Surely plperlu runs as the postgres user, not root?
(haven't got further than a few sequences yet, I'm an sql noob).
Removing database files isn't the same as replacing system binaries.

But you're right, psql (etc) in ~pgsql [which you have to do if you don't have
privileges to install anywhere else] sounds pretty dumb to me - then all local users
need to be able to read the database directories. So let's all stick with root
installs and be happy :)

-- 
'That question was less stupid; though you asked it in a profoundly stupid way.'
		-- Prof. Farnsworth
Rasputin :: Jack of All Trades - Master of Nuns



view thread (48+ messages)  latest in thread

Message-ID: <20050113181631.GQ2717@lb.tenfour>
Permalink:  ../20050113181631.GQ2717@lb.tenfour/
Also on:    postgresql.org/message-id/20050113181631.GQ2717@lb.tenfour

 · 

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: rasputnik@hellooperator.net, qnex42@gmail.com
  Subject: Re: Installing PostgreSQL as "postgress" versus "root" Debate!
  In-Reply-To: <20050113181631.GQ2717@lb.tenfour>
  References: <4001DEAF7DF9BD498B58B45051FBEA650207AAD3@25exch1.vicorpower.vicr.com> <41E5FE80.8080402@commandprompt.com> <758d5e7f05011304065d7e56a0@mail.gmail.com> <20050113122041.GG2717@lb.tenfour> <758d5e7f050113044119890a53@mail.gmail.com> <20050113181631.GQ2717@lb.tenfour>

* 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