From: Sven Sporer <s.sporer@gmx.net>
To: pgsql-admin@postgresql.org
Subject: User Management, drop users
Date: Sun, 14 Jan 2007 21:00:19 +0100
Message-ID: <6A49A3F3-CF38-46F4-B994-044A75CDBE70@gmx.net> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: s.sporer@gmx.net
Subject: Re: User Management, drop users
In-Reply-To: <6A49A3F3-CF38-46F4-B994-044A75CDBE70@gmx.net>
References: <6A49A3F3-CF38-46F4-B994-044A75CDBE70@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox