Re: Could not create a tablespace - permission denied

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Could not create a tablespace - permission denied
Дата
Msg-id 9189.1208619241@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Could not create a tablespace - permission denied  (Graham Leggett <minfrin@sharp.fm>)
Ответы Re: Could not create a tablespace - permission denied  (Graham Leggett <minfrin@sharp.fm>)
Список 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 по дате отправления:

Предыдущее
От: Graham Leggett
Дата:
Сообщение: Could not create a tablespace - permission denied
Следующее
От: Graham Leggett
Дата:
Сообщение: Re: Could not create a tablespace - permission denied