Re: User Permission

From: "Aaron Bono" <postgresql(at)aranya(dot)com>
To: "sathish kumar shanmugavelu" <sathishkumar(dot)shanmugavelu(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: User Permission
Date: 2006-07-19 14:42:38
Message-ID: bf05e51c0607190742n77a2fc04q6540b51716082831@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 7/19/06, sathish kumar shanmugavelu <sathishkumar(dot)shanmugavelu(at)gmail(dot)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
==================================================================

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Florian Weimer 2006-07-19 15:06:14 Re: INSERT/UPDATEs cycles and lack of phantom locking
Previous Message Tom Lane 2006-07-19 14:36:17 Re: Use of cmin in psql