pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oli Sennhauser <oli.sennhauser@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Opinion wanted: Default select rights for users via public schema
Date: Mon, 22 Dec 2003 12:20:24 +0100
Message-ID: <3FE6D378.3020008@bluewin.ch> (raw)

Hi

Again boring admin question:

I found that all users have access to pg_class etc. by default. In my 
opinion this causes some security questions or at least can make users 
curious about things they should not.

e.g. SELCT * FROM pg_tables where table_name like '%customer_accountings%';

Probably this user should NOT know, that there are some 
customer_accountings on this system???

How do you solve this problem?

Would it not be usefull to have some views like all_tables, user_tables 
etc. (like a big db company does) for preventing acces  to pg_tables (= 
dba_tables)?

How is it recommended to revoke the rights to pg_xxx?

REVOKE ALL PRIVS FROM PUBLIC... (like pgdump does)

And then create own access rules?

It seems to me, that e.g. php_mod for apache does not work properly 
after this becaus they do NOT find e.g. column names anymore (clear: he 
does not have access to pg_tables, etc. anymore!)

Any hint is welcome

Oli

-------------------------------------------------------

Oli Sennhauser
Database-Engineer (Oracle & PostgreSQL)
Rebenweg 6
CH - 8610 Uster / Switzerland

Phone (+41) 1 940 24 82 or Mobile (+41) 79 450 49 14
e-Mail oli.sennhauser@bluewin.ch
Website http://mypage.bluewin.ch/shinguz/PostgreSQL/

Secure (signed/encrypted) e-Mail with a Free Personal SwissSign ID: http://www.swisssign.ch

Import the SwissSign Root Certificate: http://swisssign.net/cgi-bin/trust/import

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.4K) download

view thread (4+ messages)  latest in thread

Message-ID: <3FE6D378.3020008@bluewin.ch>
Permalink:  ../3FE6D378.3020008@bluewin.ch/
Also on:    postgresql.org/message-id/3FE6D378.3020008@bluewin.ch

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: oli.sennhauser@bluewin.ch
  Subject: Re: Opinion wanted: Default select rights for users via public schema
  In-Reply-To: <3FE6D378.3020008@bluewin.ch>
  References: <3FE6D378.3020008@bluewin.ch>

* 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