pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Medi Montaseri <montaseri@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: postmaster -D PGDATA and postmaster.pid
Date: Mon, 26 Nov 2007 22:48:46 -0500
Message-ID: <9909.1196135326@sss.pgh.pa.us> (raw)
In-Reply-To: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com>
References: <8078a1730711261934l22e62f68t26301d638ae73c96@mail.gmail.com>

"Medi Montaseri" <montaseri@gmail.com> 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



view thread (3+ messages)  latest in thread

Message-ID: <9909.1196135326@sss.pgh.pa.us>
Permalink:  ../9909.1196135326@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9909.1196135326@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, montaseri@gmail.com
  Subject: Re: postmaster -D PGDATA and postmaster.pid
  In-Reply-To: <9909.1196135326@sss.pgh.pa.us>

* 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