From: | Andy Shellam <andy(at)andycc(dot)net> |
---|---|
To: | itlali(dot)guerrero(at)inegi(dot)gob(dot)mx |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | [Fwd: Restricting the access to a database] |
Date: | 2006-03-01 10:07:41 |
Message-ID: | 4405726D.9080407@andycc.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
In your pg_hba.conf file, you could only allow users to access their own
databases, so if they try and login with another database, it fails.
e..g
host db1 user1 0.0.0.0/0 md5
host db1 user2 0.0.0.0/0 md5
host db1 user3 0.0.0.0/0 md5
host example1 user2 0.0.0.0/0 md5
host all postgres 0.0.0.0/0 md5
Dont know whether this would stop them from seeing the database
entirely, but on a custom schema, would revoking USG grant stop them
from browsing that schema?
Andy
-------- Original Message --------
Subject: [ADMIN] Restricting the access to a database
Date: Thu, 23 Feb 2006 15:07:05 -0600
From: KyLiE <citlali(dot)guerrero(at)inegi(dot)gob(dot)mx>
To: pgsql-admin(at)postgresql(dot)org
Hi all, im new in this and my question can sound stupid, here is the
thing, i have a server wich have 3 databases, each one with different
users(user1, user2 and user3)
user1 have : db1, db2 and db3
user2 have : example1
and user3 have : pgadmin
Im trying this :
I want that user1 have access only to his databases, and so on,i mean
user1 most not see : example1, pgadmin.
With the schema i resrict this but only on the tables of adatabase, but
if you change search_path and add the user1's schema then you can see
their tables.
Does anyone has done it, or know how to do this??
thanks
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
!DSPAM:14,440507aa49411946914759!
From | Date | Subject | |
---|---|---|---|
Next Message | sandhya | 2006-03-01 10:26:24 | pls help me |
Previous Message | Andy Shellam | 2006-03-01 10:02:59 | Re: pg_hba.conf |