Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 762269FB222 for ; Sun, 14 Jan 2007 15:59:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 08705-08 for ; Sun, 14 Jan 2007 15:59:37 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 25C099FB22E for ; Sun, 14 Jan 2007 15:59:37 -0400 (AST) Received: (qmail invoked by alias); 14 Jan 2007 19:59:34 -0000 Received: from 85-124-206-38.dynamic.xdsl-line.inode.at (EHLO [192.168.0.4]) [85.124.206.38] by mail.gmx.net (mp015) with SMTP; 14 Jan 2007 20:59:34 +0100 X-Authenticated: #20921651 Mime-Version: 1.0 (Apple Message framework v752.3) To: pgsql-admin@postgresql.org Message-Id: <6A49A3F3-CF38-46F4-B994-044A75CDBE70@gmx.net> Content-Type: multipart/alternative; boundary=Apple-Mail-1--628425346 From: Sven Sporer Subject: User Management, drop users Date: Sun, 14 Jan 2007 21:00:19 +0100 X-Mailer: Apple Mail (2.752.3) X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200701/113 X-Sequence-Number: 24269 --Apple-Mail-1--628425346 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, I felt that this place is more appropriate to ask my question. I already posted at psql-novice, but got no response. Here we go: Right now, I have the following user management concept: -) when creating a database, an equally named role is created; every user of this db is in this role, this is to handle the CONNECT privilege in order to allow these users only to connect to "their" database, and not others -) a role "owner" and "admin"; the member of these roles have CREATEROLE privilege The problem: users who are member of "admin" are allowed to drop users from OTHER databases - that's not my intention. I know that the createrole priv. allows them to drop users, but I want to restrict that to only their database (which means: users he created) So my questions: 1) What is your tidy way to administrate users of multiple databases in the postgresql cluster? Any tips? 2) How do you restrict the users of a specific database to touch only the objects in their database? I'm very interested in the best practices of user management in PostgreSQL. Any help would be appreciated! s.sporer --Apple-Mail-1--628425346 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
Hi, I felt that this place is more = appropriate to ask my question. I already posted at psql-novice, but got = no response. Here we go:

Right now, I have the following user = management concept:
-) when creating a database, an equally = named role is created; every user of this db is in this role, this is = to
handle the CONNECT privilege in order to allow these users only = to connect to "their" database, and not others
-) a role = "owner" and "admin"; the member of these roles have CREATEROLE = privilege

The problem: users who = are member of "admin" are allowed to drop users from OTHER = databases=A0 = - that's not = my
intention. I know that the createrole priv. = allows them to drop users, but I want to restrict that to = only
their database (which means: users he = created)

So my questions:
1) What is your = tidy way to administrate users of multiple databases in the postgresql = cluster? Any tips?
2) How do you restrict the users of a = specific database to touch only the objects in their = database?

I'm very interested in the best practices = of user management in PostgreSQL. Any help would be = appreciated!

s.sporer
= --Apple-Mail-1--628425346--