X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 93F6411F60E8 for ; Wed, 26 Apr 2006 17:37:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 94051-09 for ; Wed, 26 Apr 2006 17:37:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.195]) by postgresql.org (Postfix) with ESMTP id 8C5D211F60AE for ; Wed, 26 Apr 2006 17:37:10 -0300 (ADT) Received: by xproxy.gmail.com with SMTP id h31so1100573wxd for ; Wed, 26 Apr 2006 13:37:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ruurV5UEf6ctVSSQAbIuPs70QbjtMsJ0L9b6urKfCCBIgpfeM+BfnFnmJpiMBUYMRzFA9/J6WUaSQb+WKM97PSQanOHuV+Kl6gZoRo9yK/i49L1SgV3YZ09MSJgQXsP20zmJxtlbiMMOALtbZP6krrqlJHgpD39IA7Cvu4aqoGM= Received: by 10.70.80.16 with SMTP id d16mr5203062wxb; Wed, 26 Apr 2006 13:37:10 -0700 (PDT) Received: by 10.70.83.7 with HTTP; Wed, 26 Apr 2006 13:37:10 -0700 (PDT) Message-ID: <1d219a6f0604261337p53b89c84p7c8907b3026e3d19@mail.gmail.com> Date: Wed, 26 Apr 2006 16:37:10 -0400 From: "Chris Hoover" To: "Jerry Sievers" Subject: Re: Postmaster log perms and line suffix Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17127_23992787.1146083830719" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/284 X-Sequence-Number: 21453 ------=_Part_17127_23992787.1146083830719 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 26 Apr 2006 12:39:26 -0400, Jerry Sievers 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. ------=_Part_17127_23992787.1146083830719 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

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 develope= rs 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 sys= tems by having the log files in a different partition from the database.&nb= sp; 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 t= he log partition set so the developers can get in with read only access.&nb= sp; I also use a cron job to set the permissions on the log files each nigh= t so they are readable by the developers.  This has been working very = well for us.
 

------=_Part_17127_23992787.1146083830719--