Re: [COMMITTERS] pgsql: Enable pg_ctl to give up admin

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Enable pg_ctl to give up admin
Date: 2006-02-11 19:36:52
Message-ID: 43EE3CD4.2050901@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Bruce Momjian wrote:

>Tom Lane wrote:
>
>
>>Stephen Frost <sfrost(at)snowman(dot)net> writes:
>>
>>
>>>* Tom Lane (tgl(at)postgresql(dot)org) wrote:
>>>
>>>
>>>>Enable pg_ctl to give up admin privileges when starting the server under
>>>>Windows (if newer than NT4, else works same as before).
>>>>
>>>>
>>>I don't suppose we could consider doing this for Unix-based systems too?
>>>I think it'd certainly be nice. It's also how quite a few other Unix
>>>daemons operate.
>>>
>>>
>>Why should we try to duplicate the functionality of "su"? And we would
>>have to largely duplicate it, not just change process UID.
>>
>>I don't see the need for it anyway. The only reason this patch went in
>>at all is to compensate for the general level of ignorance of Windows
>>users...
>>
>>
>
>But other Unix daemons do it, so why not us?
>
>

Other Unix daemons typically do it when they need to do something at
startup like open a privileged port to listen on, or if they need to be
able to become other users. Postgres doesn't have anything that requires
root privilege in normal operation. How many times have security holes
been inadvertantly opened because of this sort of privilege escalation?

Windows is different in a number of ways, including the high
inconvenience factor involved in running as a non-power user, and the
fact that Windows servers are typically single-purpose.

cheers

andrew

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-02-11 19:46:42 Re: pgsql: Add INET/CIDR operators: and, or, not, plus
Previous Message User Gsmet 2006-02-11 18:58:01 pgfouine - www: reorganized samples

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2006-02-11 19:41:09 Re: Raising the Pl/Perl required version
Previous Message Greg Sabino Mullane 2006-02-11 19:30:34 Raising the Pl/Perl required version