Re: Could not create a tablespace - permission denied - Mailing list pgsql-admin

From Tom Lane
Subject Re: Could not create a tablespace - permission denied
Date
Msg-id 9189.1208619241@sss.pgh.pa.us
Whole thread Raw
In response to Could not create a tablespace - permission denied  (Graham Leggett <minfrin@sharp.fm>)
Responses Re: Could not create a tablespace - permission denied
List pgsql-admin
Graham Leggett <minfrin@sharp.fm> writes:
> While attempting to create a tablespace as the postgres user under RHEL5
> with *no* SELinux enabled, I get the following error:

> postgres=# CREATE TABLESPACE fma LOCATION '/home/chandler/fma/db/pgsql';
> ERROR:  could not set permissions on directory
> "/home/chandler/fma/db/pgsql": Permission denied

> The user postgres is able to access the directory, and the user postgres
> is able to set permissions on the directory to 0700:

> -bash-3.1$ chmod 700 /home/chandler/fma/db/pgsql

If you can do that from a shell running as postgres, then I think
selinux is not so disabled as you think.  Ordinary file permissions are
applied uniformly to all processes running as a given userid, but
selinux is different.

            regards, tom lane

pgsql-admin by date:

Previous
From: Graham Leggett
Date:
Subject: Could not create a tablespace - permission denied
Next
From: Graham Leggett
Date:
Subject: Re: Could not create a tablespace - permission denied