From: | Peter Eisentraut <peter_e(at)gmx(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 18:33:06 |
Message-ID: | Pine.LNX.4.30.0110052030350.654-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Oleg Lebedev writes:
> 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
You should start the postmaster like this:
su -c 'postmaster -D ...' postgres
Setuid is not allowed because it introduces a security hole (on some
platforms anyway), coming from user-defined C functions.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-10-05 19:20:06 | Re: Redo record at high number |
Previous Message | Oleg Lebedev | 2001-10-05 18:25:06 | Postmaster startup |