Re: Could not create a tablespace - permission denied

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Graham Leggett <minfrin(at)sharp(dot)fm>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Could not create a tablespace - permission denied
Date: 2008-04-19 18:51:53
Message-ID: 480A3F49.7080406@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-04-19 21:11:02 Re: Could not create a tablespace - permission denied
Previous Message Graham Leggett 2008-04-19 18:21:17 Re: Could not create a tablespace - permission denied