Re: Postmaster startup

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Postmaster startup
Дата
Msg-id Pine.LNX.4.30.0110052030350.654-100000@peter.localdomain
обсуждение исходный текст
Ответ на Postmaster startup  (Oleg Lebedev <olebedev@waterford.org>)
Список 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@gmx.net   http://funkturm.homeip.net/~peter


В списке pgsql-admin по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Authorization problem
Следующее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: Postmaster startup