Skip site navigation (1) Skip section navigation (2)

Re: select only user

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: select only user
Date: 2008-01-17 15:15:30
Message-ID: fmnrej$5bs$ (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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 -

Milen A. Radev

In response to


pgsql-admin by date

Next:From: Milen A. RadevDate: 2008-01-17 15:24:02
Subject: Re: select only user
Previous:From: Stephen FrostDate: 2008-01-17 14:37:29
Subject: Re: [ADMIN] postgresql in FreeBSD jails: proposal

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group