From: Lou Picciano <loupicciano@comcast.net>
To: pgsql-testers <pgsql-testers@postgresql.org>
Subject: testing simple SELECT commands on newly-created databases. Apparently blocked by (lack of) privileges?
Date: Tue, 11 May 2010 20:41:00 +0000 (UTC)
Message-ID: <1987554247.9039561273610460655.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> (raw)
In-Reply-To: <1629157591.9037451273610224266.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
[TEST REPORT]
[Release]: 9.0Beta1
[Test Type]: Privileges assignment on new database.
[Test]: testing simple SELECT commands on newly-created databases. Apparently blocked by (lack of) privileges?
[Platform]: Solaris 10 SPARC Enterprise 450 Quad
[Parameters]:
[Failure]: Don't know. Is this a (new) default behavior?
[Results]: on a newly-installed cluster,
1) create a new SUPERUSER 'admin', with all the bells and whistles.
2) CREATE a new database 'test', including several tables, with owner 'admin' in PUBLIC.
3) psql \dt command verifies owner 'admin' for all tables
4) psql \dp command shows NO Access privileges listed. OK?
5) INSERT data into (test)table1. WORKS.
6) CREATE new user "Mr. User" LOGIN, etc.
7) GRANT ALL ON DATABASE test TO "Mr. User";
8) SELECT * FROM table1; --------------- ERROR: permission denied for relation table1
9) GRANT ALL ON TABLE table1 TO "Mr. User";
10) SELECT * FROM table1; --------------- WORKS
[Comments]: Is this consistent behavior? Is it necessary to explicitly grant privileges to each object in a database?
We are aware of the new ALTER DEFAULT PRIVILEGES command, but, per docs, it only affects tables (including views), sequences, and functions , correct?
IE, it cannot affect database privileges.
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-testers@postgresql.org
Cc: loupicciano@comcast.net
Subject: Re: testing simple SELECT commands on newly-created databases. Apparently blocked by (lack of) privileges?
In-Reply-To: <1987554247.9039561273610460655.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net>
References: <1629157591.9037451273610224266.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> <1987554247.9039561273610460655.JavaMail.root@sz0093a.westchester.pa.mail.comcast.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