Re: Log file permissions?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
Cc: Douglas McNaught <doug(at)mcnaught(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Log file permissions?
Date: 2008-01-31 15:21:41
Message-ID: 20080131152141.GF8602@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Perhaps we should add a log_file_group option, to which we would chgrp()
the log files.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2008-01-31 15:48:18 Re: [GENERAL] Backup
Previous Message Vivek Khera 2008-01-31 15:18:49 Re: How can I avoid PGPool as a single point of failure?