pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Graham Leggett <minfrin@sharp.fm>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Could not create a tablespace - permission denied
Date: Sat, 19 Apr 2008 11:51:53 -0700
Message-ID: <480A3F49.7080406@commandprompt.com> (raw)
In-Reply-To: <480A381D.3030908@sharp.fm>
References: <4809EC7B.6060902@sharp.fm>
	<9189.1208619241@sss.pgh.pa.us>
	<480A12F5.5060609@sharp.fm>
	<9478.1208620229@sss.pgh.pa.us>
	<480A190B.80408@sharp.fm>
	<480A1A55.6090800@commandprompt.com>
	<480A381D.3030908@sharp.fm>

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






view thread (10+ messages)  latest in thread

Message-ID: <480A3F49.7080406@commandprompt.com>
Permalink:  ../480A3F49.7080406@commandprompt.com/
Also on:    postgresql.org/message-id/480A3F49.7080406@commandprompt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, minfrin@sharp.fm, tgl@sss.pgh.pa.us
  Subject: Re: Could not create a tablespace - permission denied
  In-Reply-To: <480A3F49.7080406@commandprompt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox