pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gerardo Herzig <gherzig@fmed.uba.ar>
Cc: pgsql-sql@postgresql.org
Subject: Re: log file permissions?
Date: Fri, 16 Mar 2007 12:21:47 -0400
Message-ID: <7816.1174062107@sss.pgh.pa.us> (raw)
In-Reply-To: <45FABCC8.3090901@fmed.uba.ar>
References: <45FABCC8.3090901@fmed.uba.ar>

Gerardo Herzig <gherzig@fmed.uba.ar> writes:
> Hi dudes. I have my pg log file rotation configured so i have a 
> psql_`today`.log. The thing is, can i configure postgres so the file 
> permissions (today is 600) could by 640, so developers could login and 
> tailf the logfile (without using the postgres superuser, course)?

You'd have to change the code --- the syslogger process inherits umask
077 from the postmaster.

			regards, tom lane



view thread (3+ messages)

Message-ID: <7816.1174062107@sss.pgh.pa.us>
Permalink:  ../7816.1174062107@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7816.1174062107@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gherzig@fmed.uba.ar
  Subject: Re: log file permissions?
  In-Reply-To: <7816.1174062107@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox