Re: Could not create a tablespace - permission denied

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Could not create a tablespace - permission denied
Дата
Msg-id 480A3F49.7080406@commandprompt.com
обсуждение исходный текст
Ответ на Re: Could not create a tablespace - permission denied  (Graham Leggett <minfrin@sharp.fm>)
Ответы Re: Could not create a tablespace - permission denied  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Graham Leggett wrote:
> Joshua D. Drake wrote:
>
>> I am pretty sure you are missing something. I can not reproduce your
>> issue:
>
> Do it like this:
>
> - mkdir /tmp/foo
> - chown user:user /tmp/foo
> - edit /etc/group and add postgres to the group user

Aha! there it is. Adding a user to a group doesn't mean anything until
that user reinitializes the environment. That is why restarting
postgresql resolves the issue. When postgresql is started, is actually
launches a new shell as the user and the fact that they are part of the
group is picked up.


Sincerely,

Joshua D. Drake




В списке pgsql-admin по дате отправления:

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