Re: Log file permissions?

From: Vivek Khera <vivek(at)khera(dot)org>
To: PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Log file permissions?
Date: 2008-01-31 18:36:35
Message-ID: 3431BA52-AD52-41BA-8DDB-050254169DD0@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 31, 2008, at 10:21 AM, Alvaro Herrera wrote:

> Glyn Astill wrote:
>
>> I'm not piping it to a file, postgres is managing the logs. Is there
>> any way to manage the permissions, or do I just need to create a
>> script to change the permissions?
>
> I think you should be able to chmod the files after they have been
> created. The postmaster changes its umask to 0077, so no file is
> group-readable. I don't think is configurable either.

just move the logs into a subdir which has permissions applied to it,
then not worry about the files inside, since nobody can break through
the directory anyhow.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Willem Buitendyk 2008-01-31 18:37:37 Re: Oracle Analytical Functions
Previous Message Vivek Khera 2008-01-31 18:31:26 Re: postgresql book - practical or something newer?