Re: enebling regular user to create new users ?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Zlatko Matić <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: enebling regular user to create new users ?
Date: 2005-06-15 15:57:14
Message-ID: 42B04FDA.8010201@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Zlatko Matić wrote:
> Hi. I know that superusers are allowed to do everything on the
> database, but I consider this as dangerous. I want to have some user
> group with rights of creating new users and giving them some
> authorizations, but without such wide power as superusers have. So, I
> was thinking about two possible scenarios: a) to allow regular users
> to create new users b) to restrict superuser's permissions
>
> What is possible and what do you suggest ?

Neither is possible directly. (B) means they're not a superuser and (A)
means they are. You could create a function marked "SECURITY DEFINER" as
a super-user and have that function create users on behalf of regular
users though.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Cedric BRINER 2005-06-15 16:05:30 changing the sequence for a table
Previous Message Richard Huxton 2005-06-15 15:55:10 Re: PostgreSQL Client Aplications ?