Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 334942E0071 for ; Sat, 19 Apr 2008 18:11:09 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58449-07 for ; Sat, 19 Apr 2008 18:11:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by developer.postgresql.org (Postfix) with ESMTP id 443862E006F for ; Sat, 19 Apr 2008 18:11:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m3JLB3rD013555; Sat, 19 Apr 2008 17:11:03 -0400 (EDT) To: "Joshua D. Drake" cc: Graham Leggett , pgsql-admin@postgresql.org Subject: Re: Could not create a tablespace - permission denied In-reply-to: <480A3F49.7080406@commandprompt.com> 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> <480A3F49.7080406@commandprompt.com> Comments: In-reply-to "Joshua D. Drake" message dated "Sat, 19 Apr 2008 11:51:53 -0700" Date: Sat, 19 Apr 2008 17:11:02 -0400 Message-ID: <13554.1208639462@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/206 X-Sequence-Number: 28970 "Joshua D. Drake" writes: > Graham Leggett wrote: >> - 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. In particular, it looks like the list of groups you belong to is typically only computed at login time (or equivalently su -l, which is what's happening in the postgres init script), and then just inherited by all processes launched from that login. So there is caching of a sort going on here, but it's in the kernel and there's nothing we can do about it. regards, tom lane