From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Christopher Petrilli <petrilli(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, "Tomeh, Husam" <htomeh(at)firstam(dot)com>, PgSQL ADMIN <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Installing PostgreSQL as "postgress" versus "root" Debate! |
Date: | 2005-01-13 02:52:36 |
Message-ID: | 4443.1105584756@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Christopher Petrilli <petrilli(at)gmail(dot)com> writes:
> On Thu, 13 Jan 2005 01:00:31 +0100, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>> The current recommendation, which is reflected in the installation
>> instructions, is to install the software as root and to use the
>> postgres user for the database files. The advice seen elsewhere in
>> this thread to use the postgres user also for the software files is
>> wrong.
> As a security professional, why would the root user need to be
> involved in the ownership of PostgreSQL? I see no reason for this,
> but perhaps I'm missing something important.
The rationale is that the executables should not be owned by the
postgres user, so that they can't be corrupted/trojaned if someone
manages to break in via the database server.
This of course does not require that the executables be owned by root,
only by someone other than the daemon account you run the server under.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Goulet, Dick | 2005-01-13 02:56:11 | Re: Installing PostgreSQL as "postgress" versus "root" Debate! |
Previous Message | Joshua D. Drake | 2005-01-13 01:36:04 | Re: Installing PostgreSQL as "postgress" versus "root" Debate! |