From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Fuhr <mike@fuhr.org>
Cc: Liustech <david.lao@sharpasia.com.mo>
Cc: pgsql-admin@postgresql.org
Subject: Re: real and effective user ids must match
Date: Thu, 14 Sep 2006 08:48:33 -0400
Message-ID: <27572.1158238113@sss.pgh.pa.us> (raw)
In-Reply-To: <20060914062633.GA72750@winnie.fuhr.org>
References: <006001c6d634$5a0ca760$0c00000a@davidlao>
<20060914062633.GA72750@winnie.fuhr.org>
Michael Fuhr <mike@fuhr.org> 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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mike@fuhr.org, david.lao@sharpasia.com.mo
Subject: Re: real and effective user ids must match
In-Reply-To: <27572.1158238113@sss.pgh.pa.us>
References: <006001c6d634$5a0ca760$0c00000a@davidlao> <20060914062633.GA72750@winnie.fuhr.org> <27572.1158238113@sss.pgh.pa.us>
* 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