From: Christoph Berg <myon@debian.org>
To: аЛинукс <alinux@ya.ru>
Cc: PostgreSQL in Debian <pgsql-pkg-debian@postgresql.org>
Subject: Re: Postgresql apt repo logrotate issue
Date: Fri, 1 Nov 2013 18:05:18 +0100
Message-ID: <20131101170518.GA7298@msgid.df7cb.de> (raw)
In-Reply-To: <1382750681.8403.7.camel@nick-laptop>
References: <1382750681.8403.7.camel@nick-laptop>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>
Re: аЛинукс 2013-10-26 <camel@nick-laptop/">1382750681.8403.7.camel@nick-laptop>
> First of all: THANK YOU for your work and time!
> The world really needs such a great engine as PostreSQL!
Thanks :)
> I'm trying to use your PG apt repo on the recent non-LTS Ubuntu-13.10
> And just as the FAQ says:
> https://wiki.postgresql.org/wiki/Apt/FAQ#I_am_using_a_non-LTS_release_of_Ubuntu
>
> I've hit the "logrotate" issue.
> Several minutes of investigations showed that the the breaking thing
> from postgres is
> just writable permissions for group on /var/log/postgres/ dir...
>
> # ll -d /var/log/postgresql
> drwxrwxr-t 2 root postgres 4096 Oct 26 04:14 /var/log/postgresql/
>
> So, logratote sees a huge security issue here and doesn't start. That's
> its problems.
>
> But I can't believe that you preferred to add "Breaks: logrotate >=3.8"
> to the package
> instead of just
> chown postgres:postgres /var/log/postgresql
> chmod 755 /var/log/postgresql
>
> I did that - and logrotate was happy.
>
> What's the problem guys? Why did you decide to break logrotate?
> Possible, I'm missing anything bigger?
The problem with that approach is that it removes the g+w bit on
/var/log/postgresql/. There are other programs besides PostgreSQL that
write to that directory (pgbouncer, pgpool, ...?), though all are
running with the "postgres" user.
> So, I decided to write to you as FAQ says:
> "We are looking into providing a nicer solution for this problem."
>
> Isn't chown+chmod a fix of the issue?
Maybe.
@List: what do you think?
Christoph
--
cb@df7cb.de | http://www.df7cb.de/Attachments:
signature.asc (application/pgp-signature, 835B) download
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-pkg-debian@postgresql.org
Cc: myon@debian.org, alinux@ya.ru
Subject: Re: Postgresql apt repo logrotate issue
In-Reply-To: <20131101170518.GA7298@msgid.df7cb.de>
References: <1382750681.8403.7.camel@nick-laptop> <20131101170518.GA7298@msgid.df7cb.de>
* 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