Re: Could not create a tablespace - permission denied

From: Graham Leggett <minfrin(at)sharp(dot)fm>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
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:21:17
Message-ID: 480A381D.3030908@sharp.fm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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
- attempt to access /tmp/foo as the user postgres, at this point a user
logged in as postgres will be able to access the directory.
- attempt to create a tablespace on /tmp/foo, this will fail until
postgresql is restarted, after which the attempt will succeed.

Regards,
Graham
--

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Joshua D. Drake 2008-04-19 18:51:53 Re: Could not create a tablespace - permission denied
Previous Message Tom Lane 2008-04-19 16:17:31 Re: Could not create a tablespace - permission denied