Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BFA312E2DF4 for ; Mon, 26 Nov 2007 23:48:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 86647-01 for ; Mon, 26 Nov 2007 23:48:42 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id CBF2B2E266B for ; Mon, 26 Nov 2007 23:48:48 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id lAR3mkMc009910; Mon, 26 Nov 2007 22:48:46 -0500 (EST) To: "Medi Montaseri" cc: pgsql-admin@postgresql.org Subject: Re: postmaster -D PGDATA and postmaster.pid In-reply-to: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com> References: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com> Comments: In-reply-to "Medi Montaseri" message dated "Mon, 26 Nov 2007 19:34:36 -0800" Date: Mon, 26 Nov 2007 22:48:46 -0500 Message-ID: <9909.1196135326@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/229 X-Sequence-Number: 27472 "Medi Montaseri" writes: > However if I try to start the engine with "/etc/init.d/postgresql start " or > service postgresql start" I see the following error message in my PGLOG (ie > /var/log/pgsql/pgstartup.log) > postmaster cannot access the server configuration file > "/qmsvol/pg_8.1.9/data/postgresql.conf": Permission denied This being CentOS (ie RHEL), you probably have got SELinux turned on by default. The out-of-the-box SELinux policy forbids the postmaster daemon from accessing portions of the filesystem other than /var/lib/pgsql. You can either disable SELinux or fix its policy to allow PG to access the area where you want to put PGDATA. I don't really recommend the former, at least not for a system that has any exposure at all to the open Internet. However, I don't have a recipe for fixing the latter in my hip pocket, either. (Really need to go study SELinux someday.) regards, tom lane