Re: On default privilege/access behavior and how to change it? - Mailing list pgsql-general

From Tom Lane
Subject Re: On default privilege/access behavior and how to change it?
Date
Msg-id 21084.1173413727@sss.pgh.pa.us
Whole thread Raw
In response to On default privilege/access behavior and how to change it?  ("Ing. Daniel Manrique" <dmanriqu@correo.fca.unam.mx>)
List pgsql-general
"Ing. Daniel Manrique" <dmanriqu@correo.fca.unam.mx> writes:
> I'd like to configure things so that:
> a) users are unable to modify template1;

If you're on a PG version where template1 isn't the default connection
target, you could just disallow connections to it.  But that might just
mean that your problem moves over to the "postgres" database.

> b) Users can't connect to databases other than the ones they created
> (and perhaps the postgres database, for initial connection purposes).

See CONNECT privilege (as of 8.2) and/or modify pg_hba.conf.

            regards, tom lane

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: HIPPA (was Re: Anyone know ...)
Next
From: Tom Lane
Date:
Subject: Re: Weird behaviour on a join with multiple keys