pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Restricting Groups / Users
3+ messages / 3 participants
[nested] [flat]

* Restricting Groups / Users
@ 2004-03-10 01:21 Hadley Willan <hadley.willan@deeperdesign.co.nz>
  2004-03-10 02:52 ` Re: Restricting Groups / Users Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Hadley Willan @ 2004-03-10 01:21 UTC (permalink / raw)
  To: pgsql-admin

Hi,
    I'm running pgsql 7.4.1 and I was wondering if it is possible to
restrict users from creating tables.

Basically I want to give some users READ-ONLY access to a majority of
the system.

Thanks
-- 
Hadley Willan » Director » hadley.willan@deeperdesign.com » +64(21) 28
41 463
Deeper Design Limited » +64(7) 377 3328 » www.deeperdesign.com

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

* Re: Restricting Groups / Users
  2004-03-10 01:21 Restricting Groups / Users Hadley Willan <hadley.willan@deeperdesign.co.nz>
@ 2004-03-10 02:52 ` Bruce Momjian <pgman@candle.pha.pa.us>
  2004-03-10 05:47   ` Re: Restricting Groups / Users Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2004-03-10 02:52 UTC (permalink / raw)
  To: Hadley Willan <hadley.willan@deeperdesign.co.nz>; +Cc: pgsql-admin

Hadley Willan wrote:
> Hi,
>     I'm running pgsql 7.4.1 and I was wondering if it is possible to
> restrict users from creating tables.
> 
> Basically I want to give some users READ-ONLY access to a majority of
> the system.

Yes, you can control permissions on the public schema and the other
schemas.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



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

* Re: Restricting Groups / Users
  2004-03-10 01:21 Restricting Groups / Users Hadley Willan <hadley.willan@deeperdesign.co.nz>
  2004-03-10 02:52 ` Re: Restricting Groups / Users Bruce Momjian <pgman@candle.pha.pa.us>
@ 2004-03-10 05:47   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2004-03-10 05:47 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Hadley Willan <hadley.willan@deeperdesign.co.nz>; pgsql-admin

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Hadley Willan wrote:
>> I'm running pgsql 7.4.1 and I was wondering if it is possible to
>> restrict users from creating tables.

> Yes, you can control permissions on the public schema and the other
> schemas.

Specifically, revoke their CREATE rights on public (as well as any other
schemas you've created) and revoke their CREATE rights on the database
so they can't create any new schemas to create tables in.

If you are feeling draconian enough to want to prohibit creation of temp
tables as well as regular tables, then also remove TEMP rights at the
database level.  I'm dubious about the usefulness of this though.

			regards, tom lane



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


end of thread, other threads:[~2004-03-10 05:47 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-10 01:21 Restricting Groups / Users Hadley Willan <hadley.willan@deeperdesign.co.nz>
2004-03-10 02:52 ` Bruce Momjian <pgman@candle.pha.pa.us>
2004-03-10 05:47   ` Tom Lane <tgl@sss.pgh.pa.us>

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