Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VcIA2-0004Zi-D3 for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 01 Nov 2013 17:05:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VcIA1-0003G2-RT for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 01 Nov 2013 17:05:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VcIA1-0003Fw-C8 for pgsql-pkg-debian@postgresql.org; Fri, 01 Nov 2013 17:05:25 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VcI9x-00082n-5v for pgsql-pkg-debian@postgresql.org; Fri, 01 Nov 2013 17:05:24 +0000 Received: from msgid.df7cb.de (kref-4d090b4e.pool.mediaWays.net [77.9.11.78]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 7F73F69678; Fri, 1 Nov 2013 18:05:19 +0100 (CET) Date: Fri, 1 Nov 2013 18:05:18 +0100 From: Christoph Berg To: =?utf-8?B?0LDQm9C40L3Rg9C60YE=?= Cc: PostgreSQL in Debian Subject: Re: Postgresql apt repo logrotate issue Message-ID: <20131101170518.GA7298@msgid.df7cb.de> Mail-Followup-To: Christoph Berg , =?utf-8?B?0LDQm9C40L3Rg9C60YE=?= , PostgreSQL in Debian References: <1382750681.8403.7.camel@nick-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <1382750681.8403.7.camel@nick-laptop> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.4 (--) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Re: =D0=B0=D0=9B=D0=B8=D0=BD=D1=83=D0=BA=D1=81 2013-10-26 <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 >=20 > 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... >=20 > # ll -d /var/log/postgresql=20 > drwxrwxr-t 2 root postgres 4096 Oct 26 04:14 /var/log/postgresql/ >=20 > So, logratote sees a huge security issue here and doesn't start. That's > its problems. >=20 > But I can't believe that you preferred to add "Breaks: logrotate >=3D3.8" > to the package > instead of just > chown postgres:postgres /var/log/postgresql > chmod 755 /var/log/postgresql >=20 > I did that - and logrotate was happy. >=20 > 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." >=20 > Isn't chown+chmod a fix of the issue? Maybe. @List: what do you think? Christoph --=20 cb@df7cb.de | http://www.df7cb.de/ --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBCAAGBQJSc99EAAoJEExaa6sS0qeu4AcP/3tgpzODDRjW52HqX0K5RxLv pLjau7LzvEv29tg90GkErN0CoKQ8rD2T2105UEignwItp0k6QLrNjg9YssIEQPL+ X3wRHGWP95VpJau/uGnhFw0S10dXHn8zLbJ4SFHvZzuI5u6W/j6NXlsEOUCGP94b U4ho35TkrlTZbB+ROI5ioYMOrvIdBtzKxuEvYsR0xJ/u9D4RGCNBV79HJa6Hc8Vv eJ1k9wLK0+Veb+fQoCJpQoIeRyND5+qzUXqhRJi6nEfF+0s3hnHv04XU1z+Q7LVs bvNdL10YPdHNIYfKOsJesCjFjWv4msriZiygsjj/WodOXVLkc0pjAJIXFO2nahao v5zUGJbl7Tad+dEGb639pAuNIZiFW0ltvPkMMeMaweRgxk7fporO1/B8hGo/IEoZ 66Wsmr3YnQY0aetS9cvNLmak1kay7AkTKC1CL9U8LnXPW9NnohgTAJ1aG+VjLkkR qOSx7NzT99dcEi9xyY834u4uvZld0S3NZ8w1ze8f1oHdYwIhz0o0A7unlezyfvwq TX6B6MsIGoj/HObS1P1jSOhzisn4jk2Et5dDqURkkeb78ewtq11ImmfedliWn5YS r7PzFlcB+RaDnIrGKJcJtcXmNkowmC7aKU4e4ec8giVzjeIeO2m6Mv3cJMHWY2eH 0L3cxRK8rVfRSNtW97Ck =rDc9 -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--