pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: david.lao@sharpasia.com.mo
To: Michael Fuhr <mike@fuhr.org>
To: david.lao@sharpasia.com.mo
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: real and effective user ids must match
Date: Fri, 15 Sep 2006 09:20:28 +0800 (HKT)
Message-ID: <1143.202.175.123.162.1158283228.mailsage.folio@sharpasia.com.mo> (raw)
In-Reply-To: <20060915004924.GA32408@winnie.fuhr.org>
References: <006001c6d634$5a0ca760$0c00000a@davidlao>
	<20060914062633.GA72750@winnie.fuhr.org>
	<27572.1158238113@sss.pgh.pa.us>
	<50291.202.86.139.20.1158246823.mailsage.folio@sharpasia.com.mo>
	<20060915004924.GA32408@winnie.fuhr.org>

this is the command output

lrwxrwxrwx   1 root     root            4 Apr  3  2003 /bin/sh -> bash
-rwxr-xr-x   1 root     root         9468 Sep  5  2002 /usr/bin/pg_ctl
-rwxr-xr-x   1 root     root      3074760 Sep  5  2002 /usr/bin/postgres
lrwxrwxrwx   1 root     root            8 Oct 29  2005 /usr/bin/postmaster -> postgres

Best,
David

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

On Thu, Sep 14, 2006 at 11:13:43PM +0800, david.lao@sharpasia.com.mo wrote:
> I starting my postgres with standard startup script /etc/rc.d/init.d/postgressql

I didn't notice anything wrong with the script you posted.  What
happens if you run the "su" command that starts the postmaster
directly from the command line?  That is, the "su" on line 151
(you'll have to set the PGDATA environment variable or replace it
with the path to your data directory):

su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster start

What's the output of the following command?

ls -l /bin/sh /usr/bin/pg_ctl /usr/bin/postmaster /usr/bin/postgres

-- 
Michael Fuhr





view thread (19+ messages)  latest in thread

Message-ID: <1143.202.175.123.162.1158283228.mailsage.folio@sharpasia.com.mo>
Permalink:  ../1143.202.175.123.162.1158283228.mailsage.folio@sharpasia.com.mo/
Also on:    postgresql.org/message-id/1143.202.175.123.162.1158283228.mailsage.folio@sharpasia.com.mo

 · 

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 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: david.lao@sharpasia.com.mo, mike@fuhr.org, tgl@sss.pgh.pa.us
  Subject: Re: real and effective user ids must match
  In-Reply-To: <1143.202.175.123.162.1158283228.mailsage.folio@sharpasia.com.mo>
  References: <006001c6d634$5a0ca760$0c00000a@davidlao> <20060914062633.GA72750@winnie.fuhr.org> <27572.1158238113@sss.pgh.pa.us> <50291.202.86.139.20.1158246823.mailsage.folio@sharpasia.com.mo> <20060915004924.GA32408@winnie.fuhr.org> <1143.202.175.123.162.1158283228.mailsage.folio@sharpasia.com.mo>

* 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