Re: enebling regular user to create new users ? - Mailing list pgsql-general

From Richard Huxton
Subject Re: enebling regular user to create new users ?
Date
Msg-id 42B04FDA.8010201@archonet.com
Whole thread Raw
In response to enebling regular user to create new users ?  (Zlatko Matić <zlatko.matic1@sb.t-com.hr>)
Responses Re: enebling regular user to create new users ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-general by date:

Previous
From: stig erikson
Date:
Subject: Re: postgresql rpms (7.4.2, 7.4.5, 7.4.8) for redhat 8.0
Next
From: Richard Huxton
Date:
Subject: Re: PostgreSQL Client Aplications ?