Unix Technical Forum

ROLES and PRIVILEGES

This is a discussion on ROLES and PRIVILEGES within the pgsql Admins forums, part of the PostgreSQL category; --> Hi all, Sorry if this is an already answered question. I'm having some troubles to set privileges to a ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:25 AM
Rodrigo Sakai
 
Posts: n/a
Default ROLES and PRIVILEGES



Hi all,



Sorry if this is an already answered question. I'm having some troubles to
set privileges to a user (role). I have to roles, postgres (the superuser)
and roger, I created a database 'test' with postgres role and I want that
roger have only SELECT, INSERT, UPDATE and DELETE on that database, so I
tried:



REVOKE ALL ON DATABASE test FROM roger;



GRANT SELECT, UPDATE, INSERT, DELETE ON <table_name> TO roger;



But the role roger can still create objects in this database and I don't
want it!



Any HELP???



Thanks!!!











Rodrigo Sakai

Administrador de Banco de Dados

*(11) 3750-7075

* rodrigo.sakai@zanthus.com.br






Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:25 AM
Tom Lane
 
Posts: n/a
Default Re: ROLES and PRIVILEGES

"Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br> writes:
> But the role roger can still create objects in this database and I don't
> want it!


revoke create on the public schema ... database-level privileges are not
the issue here. See the GRANT manual page.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com