pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen A. Radev <milen@radev.net>
To: pgsql-admin@postgresql.org
Subject: Re: select only user
Date: Thu, 17 Jan 2008 17:15:30 +0200
Message-ID: <fmnrej$5bs$1@ger.gmane.org> (raw)
In-Reply-To: <77335.88733.qm@web56407.mail.re3.yahoo.com>
References: <77335.88733.qm@web56407.mail.re3.yahoo.com>

Jessica Richard написа:
> I created a user and granted only "select" to this user so that  this user can only select the tables on a production system. But by default, this user can also CREATE TABLE successfully....
> 
> How can I revoke this "create table" privilege (and possible others) and limit this user to only the permissions granted by me?
> 

Revoke the "create" privilege on the "public" schema (or any other 
schema you've created) from 'public' (that's special "role"). Also 
revoke the "create" privilege on the database(s) in question from the 
same special role 'public' to prevent creation of new schemas.

More here - http://www.postgresql.org/docs/current/static/sql-grant.html.

-- 
Milen A. Radev




view thread (5+ messages)  latest in thread

Message-ID: <fmnrej$5bs$1@ger.gmane.org>
Permalink:  ../fmnrej$5bs$1@ger.gmane.org/
Also on:    postgresql.org/message-id/fmnrej$5bs$1@ger.gmane.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: milen@radev.net
  Subject: Re: select only user
  In-Reply-To: <fmnrej$5bs$1@ger.gmane.org>

* 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