From: Chris Hoover <revoohc@gmail.com>
To: Jerry Sievers <jerry@jerrysievers.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Postmaster log perms and line suffix
Date: Wed, 26 Apr 2006 16:37:10 -0400
Message-ID: <1d219a6f0604261337p53b89c84p7c8907b3026e3d19@mail.gmail.com> (raw)
In-Reply-To: <m3veswmgu9.fsf@prod01.jerrysievers.com>
References: <m3veswmgu9.fsf@prod01.jerrysievers.com>
On 26 Apr 2006 12:39:26 -0400, Jerry Sievers <jerry@jerrysievers.com> wrote:
>
> Pgadmins, 2 loosly related questions
>
> 1. We have need to let developers view the postmaster logs on some of
> our environments and wish NOT to give them access to the postgres
> Unix acct if possible. It looks though as if log file perms are
> determined by the global umask set in postmaster.c and is not
> changeable without either changing the umask or adding some chmod
> lines to syslogger.c.
>
> Q: Am I missing an easier way to do this? I realize the risks
> involved here.
I did this in my non-production systems by having the log files in a
different partition from the database. I symlinked pg_log to the log
partition so that the database would see the log files in the expected
place. I then have the permissions on the log partition set so the
developers can get in with read only access. I also use a cron job to set
the permissions on the log files each night so they are readable by the
developers. This has been working very well for us.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: revoohc@gmail.com, jerry@jerrysievers.com
Subject: Re: Postmaster log perms and line suffix
In-Reply-To: <1d219a6f0604261337p53b89c84p7c8907b3026e3d19@mail.gmail.com>
References: <m3veswmgu9.fsf@prod01.jerrysievers.com> <1d219a6f0604261337p53b89c84p7c8907b3026e3d19@mail.gmail.com>
* 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