From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SMJEj-0006SL-1W for garchives@archives.gentoo.org; Mon, 23 Apr 2012 13:23:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E36FDE0A4A; Mon, 23 Apr 2012 13:23:10 +0000 (UTC) Received: from mail.squareownz.org (squareownz.org [46.4.64.185]) by pigeon.gentoo.org (Postfix) with ESMTP id 4B371E0CA2 for ; Mon, 23 Apr 2012 13:21:32 +0000 (UTC) Received: by mail.squareownz.org (Postfix, from userid 1000) id E09129C02CF; Mon, 23 Apr 2012 15:21:30 +0200 (CEST) Date: Mon, 23 Apr 2012 15:21:30 +0200 From: napalm@squareownz.org To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Postgres suddenly can't access files in its /etc directory Message-ID: <20120423132130.GA11404@squareownz.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: fe9b7580-78bb-4912-a3d4-56af5f82de68 X-Archives-Hash: 0e5fd5b7424eb05bfd016379e08c5058 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm unsure if I should be posting this to the -hardened mailing list as I'm using the hardened profile but all of a sudden I'm getting a rather strange error when trying to start postgres. # /etc/init.d/postgresql-9.1 start * Caching service dependencies ... [ = ok ] * The following file(s) are not readable by 'postgres': * /etc/postgresql-9.1/postgresql.conf * /etc/postgresql-9.1/pg_ident.conf * /etc/postgresql-9.1/pg_hba.conf * HINT: Try: 'chmod 644 /etc/postgresql-9.1/*.conf' * ERROR: postgresql-9.1 failed to start That's what I'm getting when I attempt to start it and I don't seem to have= modified anything. Looking into the init script I can see it's doing su postgres -c "test -r /= etc/postgresql-9.1/pg_hba.conf" and the like but the output of: su postgres -c "test -r /etc/postgresql-9.1/pg_hba.conf" || echo "fail"=09 is fail... so I'm quite at a loss as to what could be going on here. All of= the files are owned by postgres, have the correct permissions (I ran chmod= 644 as it hinted) and it should be able to traverse to the directory as ev= erything has the execute bit from /etc onwards. Any tips? Cheers! --gKMricLos+KVdGMg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iJwEAQECAAYFAk+VV1oACgkQwma4ruuHSlkjhgP8CUMIj9I8JtlHos7na0I+7+HF PF6YDadN3MuCCpze/Gnaq7qxpmBqKAzgaKazR24Wb0fN66KEvNs+iaMdDsetUF8B eDQVh+reDYQ5hUUklf/gK+kYKMkEIbCWRiYn35nhRUHfhRRWqenHjQwBjETc/mKU xEq/UReJjVT5Um74djw= =7RRT -----END PGP SIGNATURE----- --gKMricLos+KVdGMg--