pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ng Pheng Siong <phengsiong@gmail.com>
To: pgsql-admin@postgresql.org
Subject: filesystem permissions and security
Date: Tue, 1 Nov 2005 02:02:34 +0800
Message-ID: <3829471d0510311002u6c3a950axb744c95f97a11fc5@mail.gmail.com> (raw)

Hi,

According to the manual from 7.3 onwards, PostgreSQL should be installed
thusly:

$ ./configure
$ gmake
$ su
# gmake install
# adduser postgres
# mkdir /usr/local/pgsql/data
# chown postgres /usr/local/pgsql/data
# su - postgres
$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
<etc.>

I found a number of web pages which suggest the following:

# chown -R postgres /usr/local/pgsql

Which is obviously less secure. Dunno how those people got the idea; perhaps
from older versions' documentation?

Anyways, I'm trying to find out when the "new thinking" re filesystem
permissions came in being, and mailing list discussions on same, if any.

At my day job, I just came across Oracle installations which are "chown -R
oracle /usr/local/oracle". I'm told the vendor says to do it this way. Veni,
vidi, I couldn't believe my eyes and all that. :-)

In essence, I'm looking for "ammunition" to support my case to bring
Oracle's filesystem permissions to the higher standard set by modern
PostreSQL's.

TIA. Cheers.

Message-ID: <3829471d0510311002u6c3a950axb744c95f97a11fc5@mail.gmail.com>
Permalink:  ../3829471d0510311002u6c3a950axb744c95f97a11fc5@mail.gmail.com/
Also on:    postgresql.org/message-id/3829471d0510311002u6c3a950axb744c95f97a11fc5@mail.gmail.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: phengsiong@gmail.com
  Subject: Re: filesystem permissions and security
  In-Reply-To: <3829471d0510311002u6c3a950axb744c95f97a11fc5@mail.gmail.com>
  References: <3829471d0510311002u6c3a950axb744c95f97a11fc5@mail.gmail.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