Re: Setup for a db class

From: "Goulet, Dick" <DGoulet(at)vicr(dot)com>
To: "Terry Letsche" <terry(at)letsche(dot)net>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Setup for a db class
Date: 2004-09-14 19:39:51
Message-ID: 4001DEAF7DF9BD498B58B45051FBEA650146C71A@25exch1.vicorpower.vicr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Terry,

In pga_conf.hba you can setup to restrict access to the other databases as in:

# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
# IPv6-style local connections:
host db1 usr1 ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust
host db2 usr2 172.20.0.0 255.255.0.0 trust
host db3 usr3 172.17.0.0 255.255.0.0 trust

Dick Goulet
Senior Oracle DBA
Oracle Certified 8i DBA

-----Original Message-----
From: Terry Letsche [mailto:terry(at)letsche(dot)net]
Sent: Tuesday, September 14, 2004 2:47 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Setup for a db class

Hi. I'm running postgresql on a Debian box, and plan to use it for
teaching a database class. While installing some graphical tools for the
students (namely pgadmin3), I discovered that the students could see each
other's work by simply browsing to someone else's database. What am I
missing on permissions? Each student's database is set to be owned by
them, but the contents are still browsable.

Any suggestions on configuration for a similar lab situation are welcome!

Terry

--
Terry Letsche | http://terry.letsche.net | terry at letsche dot net

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bender, Cheryl 2004-09-14 19:53:00 Re:
Previous Message Wim Kerkhoff 2004-09-14 19:01:05 Re: pg_class / missing tables