X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 4CB769FA088 for ; Thu, 14 Sep 2006 09:48:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 52517-09 for ; Thu, 14 Sep 2006 12:48:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 38BB89FA2EA for ; Thu, 14 Sep 2006 09:48:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8ECmXg7027573; Thu, 14 Sep 2006 08:48:33 -0400 (EDT) To: Michael Fuhr cc: Liustech , pgsql-admin@postgresql.org Subject: Re: real and effective user ids must match In-reply-to: <20060914062633.GA72750@winnie.fuhr.org> References: <006001c6d634$5a0ca760$0c00000a@davidlao> <20060914062633.GA72750@winnie.fuhr.org> Comments: In-reply-to Michael Fuhr message dated "Thu, 14 Sep 2006 00:26:33 -0600" Date: Thu, 14 Sep 2006 08:48:33 -0400 Message-ID: <27572.1158238113@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/126 X-Sequence-Number: 23040 Michael Fuhr writes: > On Tue, Sep 12, 2006 at 02:26:11PM +0800, Liustech wrote: >> My postgres can not start up, I get this error message: >> >> postmaster successfully started >> /usr/bin/postmaster: real and effective user ids must match > How are you starting the postmaster? The error suggests that the > postmaster or the program that runs the postmaster is setuid. Another possibility is that he's doing su postgres -c "postmaster ..." where it should be su - postgres -c "postmaster ..." I'm not certain this would produce exactly the described failure, but it's something to check. regards, tom lane