BUG #2088: logfiles only readable by instance owner

From: "Dick Snippe" <Dick(dot)Snippe(at)tech(dot)omroep(dot)nl>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2088: logfiles only readable by instance owner
Date: 2005-12-01 23:33:50
Message-ID: 20051201233350.C8E76F0B26@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2088
Logged by: Dick Snippe
Email address: Dick(dot)Snippe(at)tech(dot)omroep(dot)nl
PostgreSQL version: 8.1.0
Operating system: Fedora Core 2
Description: logfiles only readable by instance owner
Details:

when redirect_stderr = true
the logfiles created by log_filename are only readable by the postgres
instance owner.
I assume this is caused by umask((mode_t) 0077) on line 414 in
scr/backend/postmaster/postmaster.c

setting umask 077 makes sense for the data files, but not per se for the
logfile.
It would be nice if the logfile mode was configurable, or defaulted to 644
or 640.
A similar scheme to setting the permissions on unix_socket_directory could
perhaps be used.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jozef Behran 2005-12-02 01:23:53 BUG #2089: Documentation bug: Triggers in plpythonu
Previous Message Jozef Behran 2005-12-01 22:49:49 BUG #2087: Bogus error message on CREATE TRIGGER with a SQL function