Re: Grant question..

From: "Williams, Travis L, NPONS" <tlw(at)att(dot)com>
To: "Francisco J Reyes" <fran(at)natserv(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Grant question..
Date: 2002-11-20 18:10:04
Message-ID: AB815D267EC31A4693CC24D234F8291602F347AA@ACCLUST02EVS1.ugd.att.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm trying to get around regranting permsissions after a table is
created.. i.e. by default users a b & c have grant all to all new tables
created..

Travis

-----Original Message-----
From: Francisco J Reyes [mailto:fran(at)natserv(dot)net]
Sent: Wednesday, November 20, 2002 11:21 AM
To: Williams, Travis L, NPONS
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Grant question..

On Wed, 20 Nov 2002, Williams, Travis L, NPONS wrote:

> During the Design and Test Phase of some of my tables's we are droping
tables and recreating them quit often.. I have to continually regrant
privileges to different users.. is there a way to give someone general
permissions that they will have grant all to every DB that is created by
default.. maybe by setting some kind of grant on a template or
something?
> Thanks for the help..

Create groups, add users as needed to appropriate groups.
After you rebuild a table just grant .. to group $$$.

An example from one of my *.sql files:
revoke all on <table> from public;
grant select on <table> to group <group>;

Browse pgsql-general by date

  From Date Subject
Next Message Medi Montaseri 2002-11-20 18:35:26 Re: Closing inactive connections OR user connections limits
Previous Message Andrew Sullivan 2002-11-20 18:02:28 Re: rserv