pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
security rights per database DDL/DML connect
5+ messages / 4 participants
[nested] [flat]

* security rights per database DDL/DML connect
@ 2002-10-22 19:01 Gabor Faludi <falu@fits.hu>
  2002-10-23 03:37 ` Re: security rights per database DDL/DML connect Bruno Wolff III <bruno@wolff.to>
  0 siblings, 1 reply; 5+ messages in thread

From: Gabor Faludi @ 2002-10-22 19:01 UTC (permalink / raw)
  To: pgsql-admin

I've been searching the web for a solution on this but no luck .

I'm administering a webserver w/ PHP apps on . I had an idea to create an
application database and give access to certain users to maintain the data
within the database tables , but also I'd like to make sure only certain
users are able to perform DDL commands. Or simply to revoke access for
connecting to this db.

I haven't found any clues. , any help is appreciated .

many thanks,
Gabor Faludi




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: security rights per database DDL/DML connect
  2002-10-22 19:01 security rights per database DDL/DML connect Gabor Faludi <falu@fits.hu>
@ 2002-10-23 03:37 ` Bruno Wolff III <bruno@wolff.to>
  2002-10-23 04:15   ` Re: security rights per database DDL/DML connect Dan Langille <dan@langille.org>
  0 siblings, 1 reply; 5+ messages in thread

From: Bruno Wolff III @ 2002-10-23 03:37 UTC (permalink / raw)
  To: Gabor Faludi <falu@fits.hu>; +Cc: pgsql-admin

On Tue, Oct 22, 2002 at 21:01:59 +0200,
  Gabor Faludi <falu@fits.hu> wrote:
> I've been searching the web for a solution on this but no luck .
> 
> I'm administering a webserver w/ PHP apps on . I had an idea to create an
> application database and give access to certain users to maintain the data
> within the database tables , but also I'd like to make sure only certain
> users are able to perform DDL commands. Or simply to revoke access for
> connecting to this db.

In 7.3 you can get a pretty good handle on this. The database owner can
restrict who can create schemas and schema owners can control who can
create objects in that schema.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: security rights per database DDL/DML connect
  2002-10-22 19:01 security rights per database DDL/DML connect Gabor Faludi <falu@fits.hu>
  2002-10-23 03:37 ` Re: security rights per database DDL/DML connect Bruno Wolff III <bruno@wolff.to>
@ 2002-10-23 04:15   ` Dan Langille <dan@langille.org>
  2002-10-23 04:40     ` Re: security rights per database DDL/DML connect Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Dan Langille @ 2002-10-23 04:15 UTC (permalink / raw)
  To: Bruno Wolff III <bruno@wolff.to>; +Cc: Gabor Faludi <falu@fits.hu>; pgsql-admin

On Tue, 22 Oct 2002, Bruno Wolff III wrote:

> In 7.3 you can get a pretty good handle on this. The database owner can
> restrict who can create schemas and schema owners can control who can
> create objects in that schema.

Will I be able to give people the right to execute a function, but not
view it?




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: security rights per database DDL/DML connect
  2002-10-22 19:01 security rights per database DDL/DML connect Gabor Faludi <falu@fits.hu>
  2002-10-23 03:37 ` Re: security rights per database DDL/DML connect Bruno Wolff III <bruno@wolff.to>
  2002-10-23 04:15   ` Re: security rights per database DDL/DML connect Dan Langille <dan@langille.org>
@ 2002-10-23 04:40     ` Tom Lane <tgl@sss.pgh.pa.us>
  2002-10-23 04:49       ` Re: security rights per database DDL/DML connect Dan Langille <dan@langille.org>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2002-10-23 04:40 UTC (permalink / raw)
  To: Dan Langille <dan@langille.org>; +Cc: Bruno Wolff III <bruno@wolff.to>; Gabor Faludi <falu@fits.hu>; pgsql-admin

Dan Langille <dan@langille.org> writes:
> Will I be able to give people the right to execute a function, but not
> view it?

Write it in C.  Short of that, you're asking for unenforceable
restrictions on the ability to read pg_proc.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: security rights per database DDL/DML connect
  2002-10-22 19:01 security rights per database DDL/DML connect Gabor Faludi <falu@fits.hu>
  2002-10-23 03:37 ` Re: security rights per database DDL/DML connect Bruno Wolff III <bruno@wolff.to>
  2002-10-23 04:15   ` Re: security rights per database DDL/DML connect Dan Langille <dan@langille.org>
  2002-10-23 04:40     ` Re: security rights per database DDL/DML connect Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-10-23 04:49       ` Dan Langille <dan@langille.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Dan Langille @ 2002-10-23 04:49 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Bruno Wolff III <bruno@wolff.to>; Gabor Faludi <falu@fits.hu>; pgsql-admin

On Wed, 23 Oct 2002, Tom Lane wrote:

> Dan Langille <dan@langille.org> writes:
> > Will I be able to give people the right to execute a function, but not
> > view it?
>
> Write it in C.  Short of that, you're asking for unenforceable
> restrictions on the ability to read pg_proc.

I like that approach.

Given that the existing functions are written in plpgsql, is there a good
guide to converting to C?




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2002-10-23 04:49 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-22 19:01 security rights per database DDL/DML connect Gabor Faludi <falu@fits.hu>
2002-10-23 03:37 ` Bruno Wolff III <bruno@wolff.to>
2002-10-23 04:15   ` Dan Langille <dan@langille.org>
2002-10-23 04:40     ` Tom Lane <tgl@sss.pgh.pa.us>
2002-10-23 04:49       ` Dan Langille <dan@langille.org>

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