From: Keith <keithcelt@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Roles and Superusers
Date: Thu, 6 Jul 2006 19:44:53 -0700 (PDT)
Message-ID: <20060707024453.7668.qmail@web51012.mail.yahoo.com> (raw)
Greetings:
First, I apologize if this is not the correct list to
send to. I am having a problem with group roles, logon
roles, and inheritance. I am not sure if it is a
database problem or a pgIII problem. I am using
postgreSQL 8.1.4 and the bundled pgIII on WinXP Home
SP2.
It seems that the 'superuser' part of my 'leads' group
role is not functioning (code below). It appears that
the security settings are at least partially
transitive as I have one group role nested within the
other and I am able to access the appropriate
resources. The problem is that only a superuser or the
owner of a table can drop it and even though I am
supposed to be a superuser, I cannot drop the table! I
also lack the ability to create databases... The setup
is below.
I have setup two group roles
CREATE ROLE developers
NOSUPERUSER INHERIT CREATEDB NOCREATEROLE;
and
CREATE ROLE leads
SUPERUSER INHERIT CREATEDB CREATEROLE;
UPDATE pg_authid SET rolcatupdate=true WHERE
OID=23059::oid;
GRANT developers TO leads WITH ADMIN OPTION;
I also have a login role for myself
CREATE ROLE keith LOGIN
NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE;
GRANT leads TO keith WITH ADMIN OPTION;
Lastly I have a table to which only the owner and the
'developers' group role have access to. Public is not
listed. I can use this table freely, but not drop it.
CREATE TABLE test.files
(
...
)
WITHOUT OIDS;
ALTER TABLE test.files OWNER TO test;
GRANT ALL ON TABLE test.files TO test;
GRANT ALL ON TABLE test.files TO developers;
Thanks in advance for your help.
Sincerely,
Keith
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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: keithcelt@yahoo.com
Subject: Re: Roles and Superusers
In-Reply-To: <20060707024453.7668.qmail@web51012.mail.yahoo.com>
References: <20060707024453.7668.qmail@web51012.mail.yahoo.com>
* 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