pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Bono <postgresql@aranya.com>
To: sathish kumar shanmugavelu <sathishkumar.shanmugavelu@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: User Permission
Date: Wed, 19 Jul 2006 09:42:38 -0500
Message-ID: <bf05e51c0607190742n77a2fc04q6540b51716082831@mail.gmail.com> (raw)
In-Reply-To: <ee0ad3a30607190424k482b2411q1db2715c5230a84d@mail.gmail.com>
References: <ee0ad3a30607190424k482b2411q1db2715c5230a84d@mail.gmail.com>

On 7/19/06, sathish kumar shanmugavelu <sathishkumar.shanmugavelu@gmail.com>
wrote:
>
> Dear group,
>    i created a user named 'dataviewer' and grant only select permission to
> that user,
>    but now the user could able to create tables. how to restrict this,
>    i want to give permission to create views and do selects on tables and
> views.
>    how to do it?
>    plz help.
>


Have your checked
http://www.postgresql.org/docs/8.1/interactive/sql-grant.html
http://www.postgresql.org/docs/8.1/interactive/sql-revoke.html

I would start by creating a role:
http://www.postgresql.org/docs/8.1/interactive/user-manag.html

And revoke all on it.  Then add only the permissions it needs and assign the
role to the user.

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
==================================================================

view thread (3+ messages)  latest in thread

Message-ID: <bf05e51c0607190742n77a2fc04q6540b51716082831@mail.gmail.com>
Permalink:  ../bf05e51c0607190742n77a2fc04q6540b51716082831@mail.gmail.com/
Also on:    postgresql.org/message-id/bf05e51c0607190742n77a2fc04q6540b51716082831@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: postgresql@aranya.com, sathishkumar.shanmugavelu@gmail.com
  Subject: Re: User Permission
  In-Reply-To: <bf05e51c0607190742n77a2fc04q6540b51716082831@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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