BUG #2088: logfiles only readable by instance owner

Поиск
Список
Период
Сортировка
От Dick Snippe
Тема BUG #2088: logfiles only readable by instance owner
Дата
Msg-id 20051201233350.C8E76F0B26@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2088: logfiles only readable by instance owner  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2088
Logged by:          Dick Snippe
Email address:      Dick.Snippe@tech.omroep.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.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Jozef Behran"
Дата:
Сообщение: BUG #2087: Bogus error message on CREATE TRIGGER with a SQL function
Следующее
От: "Jozef Behran"
Дата:
Сообщение: BUG #2089: Documentation bug: Triggers in plpythonu