Re: BUG #4116: Cannot create tablespace: could not set permissions on directory - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #4116: Cannot create tablespace: could not set permissions on directory
Date
Msg-id 20080606214247.GI16502@alvh.no-ip.org
Whole thread Raw
In response to BUG #4116: Cannot create tablespace: could not set permissions on directory  ("Graham Leggett" <minfrin@sharp.fm>)
Responses Re: BUG #4116: Cannot create tablespace: could not set permissions on directory
List 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

pgsql-bugs by date:

Previous
From: Nathan Reed
Date:
Subject: Re: BUG #4219: fseeko test failure in configure script
Next
From: "Austin Lee"
Date:
Subject: BUG #4226: PG_CTL fails to strip admin rights before running postgres