dbTalk Databases Forums  

REVOKE does not work!

comp.databases.postgresql comp.databases.postgresql


Discuss REVOKE does not work! in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Coniglio Sgabbiato
 
Posts: n/a

Default REVOKE does not work! - 03-27-2008 , 04:15 PM






Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #2  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM






Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #3  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #4  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #5  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #6  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #7  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #8  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #9  
Old   
Huber Hans
 
Posts: n/a

Default Re: REVOKE does not work! - 03-27-2008 , 05:10 PM



Coniglio Sgabbiato schrieb:
Quote:
Hi, I created a new role as owner of a new schema that is different from
the public one. The new role wasn't created as superuser. Some time
after I granted the SELECT to this role on some tables of public schema.
I was scared to notice that the new role can create new tables on public
schema even it cannot do any update on the former existent public schema
tables. I tried to explicitly revoke the create right on public schema
but it does not work, any clue? why such weird behavior of Postgres? am
I making any mistake or Postgres just sucks so much on privileges
management?
Well you should tell us how you created the new login role:-)


Quote:
PS: sorry for bad English, I am not English mother tongue.

Reply With Quote
  #10  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: REVOKE does not work! - 03-28-2008 , 02:13 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
am I making any mistake or Postgres just sucks so much on privileges
management?
Most of the people who read this newsgroup are somewhat partial to
PostgreSQL.

It is a fairly annoying, alas frequently encountered, practice to attack
the theme of a newsgroup in a non-technical fashion in the hope to
elicit information from people who feel tempted to run to the aid of
the thusly abused.

Common baits along this line are "is it possible that PostgreSQL cannot
do this when SQL Server can" or the one you used above.

So, sorry for being so uncouth, but it's not PostgreSQL that sucks on
privilege management, it is you.

And maybe you should REVOKE CREATE ON SCHEMA PUBLIC FROM PUBLIC if you
don't want everybody to be allowed to create tables in that schema.

These things are well described in the documentation:
http://www.postgresql.org/docs/curre...L-SCHEMAS-PRIV

Yours,
Laurenz Albe


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.