pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Goulet, Dick <DGoulet@vicr.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Tomeh, Husam <htomeh@firstam.com>
Cc: PgSQL ADMIN <pgsql-admin@postgresql.org>
Subject: Re: Installing PostgreSQL as "postgress" versus "root"
Date: Wed, 12 Jan 2005 19:08:17 -0800 (PST)
Message-ID: <Pine.LNX.4.61.0501121906410.4732@hosting.commandprompt.com> (raw)
In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA650207AAD2@25exch1.vicorpower.vicr.com>
References: <4001DEAF7DF9BD498B58B45051FBEA650207AAD2@25exch1.vicorpower.vicr.com>

> Peter,
>
> 	You may well be on the development team, but you are wrong for
> one very important reason.  If the Postgresql executables are owned by
> root they execute with the priviledges of root.   Thereby any local
> created extensions like database_size also execute with the priviledges
> of root.  Wouldn't it be wonderful if some disgruntled person or a
> hacker wrote & installed a package that did an rm -fr /??  Install
> Postgres in it's own account where it's priviledges to destroy the
> server are restricted.  Anything else is begging for trouble.

Actually this is not true at any level. In order for the file
to execute as root it must be setuid root, the ownership is irrelevant
at that point.

If what you said were true, then almost every binary on a Linux system
would execute as root.

Sincerely,

Joshua D. Drake



>
>
> Dick Goulet
> Senior Oracle DBA
> Oracle Certified 8i DBA
> -----Original Message-----
> From: Peter Eisentraut [mailto:peter_e@gmx.net]
> Sent: Wednesday, January 12, 2005 7:01 PM
> To: Tomeh, Husam
> Cc: PgSQL ADMIN
> Subject: Re: [ADMIN] Installing PostgreSQL as "postgress" versus "root"
> Debate!
>
> Tomeh, Husam wrote:
>> I've seen book that prefer installing PostgreSQL as root and another
>> one recommends otherwise by first creating a postgres account and
>> then installing it as postgres. In the Oracle world, you don't use
>> root to install the software. What is the best practice as far as
>> PostgreSQL goes?
>
> 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.
>
>

-- 
Co-Founder
Command Prompt, Inc.
The wheel's spinning but the hamster's dead



view thread (48+ messages)  latest in thread

Message-ID: <Pine.LNX.4.61.0501121906410.4732@hosting.commandprompt.com>
Permalink:  ../Pine.LNX.4.61.0501121906410.4732@hosting.commandprompt.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.61.0501121906410.4732@hosting.commandprompt.com

 · 

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: jd@commandprompt.com, DGoulet@vicr.com, peter_e@gmx.net, htomeh@firstam.com
  Subject: Re: Installing PostgreSQL as "postgress" versus "root"
  In-Reply-To: <Pine.LNX.4.61.0501121906410.4732@hosting.commandprompt.com>
  References: <4001DEAF7DF9BD498B58B45051FBEA650207AAD2@25exch1.vicorpower.vicr.com> <Pine.LNX.4.61.0501121906410.4732@hosting.commandprompt.com>

* 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