Re: Linux group access to ..../psql/data & subdirectories

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема Re: Linux group access to ..../psql/data & subdirectories
Дата
Msg-id CAKoxK+6i+ciXOkoem2CVqOFuXGGpBiOS=x0wwpC_HmJb9Mun-g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Linux group access to ..../psql/data & subdirectories  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
Ответы How to Monitor backups  ("Birchall, Austen" <austen.birchall@metoffice.gov.uk>)
Список 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 по дате отправления:

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: Linux group access to ..../psql/data & subdirectories
Следующее
От: SpinDFazor
Дата:
Сообщение: positive bigint arrays