Re: BUG #4116: Cannot create tablespace: could not set permissions on directory

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Graham Leggett <minfrin(at)sharp(dot)fm>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4116: Cannot create tablespace: could not set permissions on directory
Date: 2008-06-06 21:42:47
Message-ID: 20080606214247.GI16502@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Graham Leggett wrote:

> This code makes the incorrect assumption that the platform will allow the
> postgres user to set the permissions using chmod.

> What this code should be doing is checking that the permissions on the
> directory are 0700, and failing if they are not, leaving it up to the user
> to fix the problem.
>
> Redhat Enterprise Linux 5 refuses to allow a user to chmod a directory, even
> though that user owns that directory. In addition, if SELinux is enabled,
> this gives a further reason why the code will fail.

Is this something we should do anything about?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Austin Lee 2008-06-06 23:08:08 BUG #4226: PG_CTL fails to strip admin rights before running postgres
Previous Message Nathan Reed 2008-06-06 20:16:53 Re: BUG #4219: fseeko test failure in configure script