Skip site navigation (1) Skip section navigation (2)

SELinux + CREATE TABLESPACE = ?

From: David Fetter <david(at)fetter(dot)org>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: SELinux + CREATE TABLESPACE = ?
Date: 2006-08-02 23:47:36
Message-ID: 20060802234736.GG13822@fetter.org (view raw or flat)
Thread:
Lists: pgsql-general
Folks,

This may have come up before, but I didn't see a specific answer in
the archives.

When I try to do:

CREATE TABLESPACE foo LOCATION '/path/to/foo/which/is/not/under/$PGDATA';

I get:

ERROR:  could not set permissions on directory "/path/to/foo/which/is/not/under/$PGDATA"

Apparently this is a SELinux problem.  How do I set the policy to
allow for this, or if that's not possible, how do I disable SELinux?

Thanks in advance :)

Cheers,
D
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

Responses

pgsql-general by date

Next:From: Thomas BurnsDate: 2006-08-03 00:05:05
Subject: Re: pg_restore performance on solaris 10/6
Previous:From: YoonDate: 2006-08-02 23:02:38
Subject: Rebuilding DB from broken hardrive.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group