X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 499AD3F68D8 for ; Sun, 26 Dec 2004 17:31:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80902-04 for ; Sun, 26 Dec 2004 17:31:30 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id F35943F68AE for ; Sun, 26 Dec 2004 17:31:30 +0000 (GMT) Received: (qmail 12484 invoked by uid 500); 26 Dec 2004 17:44:39 -0000 Date: Sun, 26 Dec 2004 11:44:39 -0600 From: Bruno Wolff III To: lexx@gorodok.net Cc: pgsql-admin@postgresql.org Subject: Re: database permissions:how to create read only user for db Message-ID: <20041226174439.GA12115@wolff.to> Mail-Followup-To: lexx@gorodok.net, pgsql-admin@postgresql.org References: <1655106625.20041225155456@gorodok.net> <20041225162007.GA28018@wolff.to> <942074187.20041226134122@gorodok.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <942074187.20041226134122@gorodok.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/241 X-Sequence-Number: 15827 On Sun, Dec 26, 2004 at 13:41:22 +0600, lexx@gorodok.net wrote: > > I see what you mean, but I want set access rights to database, not > for database objects, I want to deny some users to create tables in > database, but permit read values of existing tables. There is a separate privilege for controlling creation of tables (at least in recent versions - I am not sure about 7.1). By default users will not have access to objects they didn't create (with a couple of minor exceptions - see the documentation on GRANT). > How to permit various access to tables I know, it's simlpy with `GRANT > [..] ON TABLE ..', but I don't know how to deny creating new tables, > and > I think it's not possible with PostgreSQL, because as I can > understand, GRANT don't support such ability for DATABASE. It certainly is possible in recent versions.