Re: R?f. : RE: Running PostGre on DVD - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: R?f. : RE: Running PostGre on DVD
Date
Msg-id 20051115212633.GP7519@svana.org
Whole thread Raw
In response to Re: R?f. : RE: Running PostGre on DVD  ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-hackers
On Tue, Nov 15, 2005 at 10:15:01PM +0100, Magnus Hagander wrote:
> > Ah, now we are making progress. If there was a way to give up
> > file access permissions so you could no longer write files
> > to, say, the Windows System directory, this would go a long
> > way to solving the issue. Currently, if the Postmaster runs
> > as admin, anyone with access to the database could use COPY
> > to read and write any file the backend can access.
>
> Getting rid of the admin and powerusers group should do that, I think.

Look at pgwin32_is_admin(), it just checks if the user is member of one
of those two groups. I think we have your solution right here...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: R?f. : RE: Running PostGre on DVD
Next
From: "Magnus Hagander"
Date:
Subject: Re: R?f. : RE: Running PostGre on DVD