Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

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

setting umask 077 makes sense for the data files, but not per se for the
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.


pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group