pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7767: pg_ctl allows postgres running under administrator's privilege
2+ messages / 2 participants
[nested] [flat]
* BUG #7767: pg_ctl allows postgres running under administrator's privilege
@ 2012-12-21 03:02 yangyd@cn.fujitsu.com
2012-12-29 16:38 ` Re: BUG #7767: pg_ctl allows postgres running under administrator's privilege Magnus Hagander <magnus@hagander.net>
0 siblings, 1 reply; 2+ messages in thread
From: yangyd@cn.fujitsu.com @ 2012-12-21 03:02 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 7767
Logged by: yangyd
Email address: yangyd@cn.fujitsu.com
PostgreSQL version: 9.2.2
Operating system: Windows 7 Professional
Description:
I found that it's possible to start the postgres process as the
administrator of the system using `pg_ctl start -D data`, while `postgres -D
data` will complain "Execution of PostgreSQL by a user with administrative
permissions is not
permitted."
I confirmed with Process Explorer that the postgres process created by
pg_ctl does running under the administrator account.
Is this behavior intended?
Thanks.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #7767: pg_ctl allows postgres running under administrator's privilege
2012-12-21 03:02 BUG #7767: pg_ctl allows postgres running under administrator's privilege yangyd@cn.fujitsu.com
@ 2012-12-29 16:38 ` Magnus Hagander <magnus@hagander.net>
0 siblings, 0 replies; 2+ messages in thread
From: Magnus Hagander @ 2012-12-29 16:38 UTC (permalink / raw)
To: yangyd@cn.fujitsu.com; +Cc: pgsql-bugs
On Fri, Dec 21, 2012 at 4:02 AM, <yangyd@cn.fujitsu.com> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7767
> Logged by: yangyd
> Email address: yangyd@cn.fujitsu.com
> PostgreSQL version: 9.2.2
> Operating system: Windows 7 Professional
> Description:
>
> I found that it's possible to start the postgres process as the
> administrator of the system using `pg_ctl start -D data`, while `postgres -D
> data` will complain "Execution of PostgreSQL by a user with administrative
> permissions is not
> permitted."
>
> I confirmed with Process Explorer that the postgres process created by
> pg_ctl does running under the administrator account.
>
> Is this behavior intended?
It's supposed to still run under the administrative account, however,
pg_ctl will create what's called a restricted token and execute it as
that - so it will run as Administrator but without access to any
permissions received by being in the Administrators or Power Users
group for example.
You can verify it by for example attempting to COPY to a file that
only administrators have access to (access must be granted through the
group, of course)
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-12-29 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-12-21 03:02 BUG #7767: pg_ctl allows postgres running under administrator's privilege yangyd@cn.fujitsu.com
2012-12-29 16:38 ` Magnus Hagander <magnus@hagander.net>
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