Re: Linux group access to ..../psql/data & subdirectories - Mailing list pgsql-novice

From Luca Ferrari
Subject Re: Linux group access to ..../psql/data & subdirectories
Date
Msg-id CAKoxK+6i+ciXOkoem2CVqOFuXGGpBiOS=x0wwpC_HmJb9Mun-g@mail.gmail.com
Whole thread Raw
In response to Re: Linux group access to ..../psql/data & subdirectories  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
Responses How to Monitor backups
List pgsql-novice
On Fri, Aug 23, 2013 at 12:27 PM, Birchall, Austen
<austen.birchall@metoffice.gov.uk> wrote:
> should that be
>
>
>
> chmod 750 data.
>

No. From te documentation:
http://www.postgresql.org/docs/current/interactive/creating-cluster.html

Because the data directory contains all the data stored in the
database, it is essential that it be secured from unauthorized access.
initdb therefore revokes access permissions from everyone but the
PostgreSQL user.



> However even after doing this wouldn’t the 700 permissions on the plsql
> directory on leaf above still prevent access?
>

Of course. But you don't need to have access to the pgdata directory,
or at least you can split things so that if you need access to same
part (e.g., configuration files or logs) you can have right to it.


pgsql-novice by date:

Previous
From: David Johnston
Date:
Subject: Re: Linux group access to ..../psql/data & subdirectories
Next
From: SpinDFazor
Date:
Subject: positive bigint arrays