Re: On default privilege/access behavior and how to change it?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ing(dot) Daniel Manrique" <dmanriqu(at)correo(dot)fca(dot)unam(dot)mx>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: On default privilege/access behavior and how to change it?
Date: 2007-03-09 04:15:27
Message-ID: 21084.1173413727@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ing. Daniel Manrique" <dmanriqu(at)correo(dot)fca(dot)unam(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-09 04:30:34 Re: Weird behaviour on a join with multiple keys
Previous Message Ron Johnson 2007-03-09 04:12:47 HIPPA (was Re: Anyone know ...)