Re: log files and permissions - Mailing list pgsql-hackers

From Stephen J. Butler
Subject Re: log files and permissions
Date
Msg-id AANLkTim7SPMOm8Sd96T2ZfY6o_EMslw_47jJevlvzmiP@mail.gmail.com
Whole thread Raw
In response to Re: log files and permissions  (Michael Tharp <gxti@partiallystapled.com>)
List pgsql-hackers
On Thu, Jul 1, 2010 at 12:19 PM, Michael Tharp
<gxti@partiallystapled.com> wrote:
> That said, as Martin mentions one can easily place the log directory outside
> of the data directory and set appropriate directory permissions.

If I can offer my $0.02, I recently solved such a problem on SuSE
Linux with apache logs. I used the ACL support on ext3 to give a
specific group read-only access:

cd /var/log
# Add an ACL for the 'www' user
setfacl -m u:www:r-x apache2
setfacl -m u:www:r-- apache2/*
# Modify the default ACL so that new files get 'r' for user
setfacl -d -m u:www:r-- apache2

Just pointing out that this problem is solvable on systems that
support ACLs w/o patching postgres.


pgsql-hackers by date:

Previous
From: Michael Tharp
Date:
Subject: Re: log files and permissions
Next
From: Robert Haas
Date:
Subject: Re: Cannot cancel the change of a tablespace