Re: real and effective user ids must match

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Liustech <david(dot)lao(at)sharpasia(dot)com(dot)mo>, pgsql-admin(at)postgresql(dot)org
Subject: Re: real and effective user ids must match
Date: 2006-09-14 12:48:33
Message-ID: 27572.1158238113@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Fuhr <mike(at)fuhr(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-09-14 12:51:39 Re: Vacuum error on database postgres
Previous Message Michael Fuhr 2006-09-14 06:31:11 Re: create user access only to specific tables