From: | "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net> |
---|---|
To: | Oleg Lebedev <olebedev(at)waterford(dot)org> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Postmaster startup |
Date: | 2001-10-05 16:56:13 |
Message-ID: | Pine.LNX.4.30.0110051253410.3237-100000@chapelperilous.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Fri, 5 Oct 2001, Oleg Lebedev wrote:
> I decided to tighten up security on the server and start postmaster as
> postgres user on startup.
> I have a script my_script that is run on startup, which has root
> permissions. From this script I want to start postgres script, which is
> owned by postgres (postgerSQL superuser) and has 's' bit set so that it
> executes with postgres priviledges. When I try to run my_script, I get
> an error:
> postmaster: real and effective userids must match
> what am I doing wrong?
You should start postmaster with something like:
su - postgres -c 'postmaster' &
in your startup scripts. Setting the sticky bit will not accomplish what
you are trying to do.
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
To thine own self be true. (If not that, at least make some money.)
From | Date | Subject | |
---|---|---|---|
Next Message | Pedro Fonseca | 2001-10-05 16:56:28 | Re: Authorization problem |
Previous Message | Pedro Fonseca | 2001-10-05 16:45:36 | Re: Authorization problem |