Re: permissions on databases

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: Tressens Lionel <tressens(at)etud(dot)insa-tlse(dot)fr>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: permissions on databases
Date: 2001-02-06 17:15:56
Message-ID: Pine.LNX.4.30.0102061213240.6219-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 6 Feb 2001, Tressens Lionel wrote:

> I am the super user of my DBMS and if create a database for a simple user,
> I do :
>
> => create database formyuser;
>
> But If this user connects to the database and tries to create a table, he
> has no rights. I must (the super user) create the table for him and then
> give him all the permissions with GRANT.
>
> So my question is : How can I create a database for a simple user (ie not
> super user) and give him all the rigths to create and drop tables in it ?

Create the user with database create permission and then let the user
create the database directly, so they are the default owner for it.

Otherwise, yes, you need to grant all of the permission to the user.

-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Whenever people agree with me, I always think I must be wrong.
- Oscar Wilde

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-02-06 17:19:16 Re: extracting parts from date values
Previous Message Stephan Szabo 2001-02-06 17:14:11 Re: ON DELETE CASCADE and TRIGGER