| From: | Jared Sulem <jsulem(at)sulem(dot)freeserve(dot)co(dot)uk> |
|---|---|
| To: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Restricting user access to databases |
| Date: | 2001-04-24 14:23:44 |
| Message-ID: | 3AE58C70.2040503@sulem.freeserve.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Jared Sulem wrote:
> Is there anyway to make PostgreSQL automatically only grant access to
> databases by their owners, and preferably database superusers, rather
> than making lots of pg_hba.conf entries and password files?
Just had an idea. Another token could be added to the pg_hba.conf file:
'owner'. Then the line:
host
all
192.168.3.0
255.255.255.0
password owner
Would only allow users that owned the database they were trying to
access to login. 'owner' being like a virtual file containing only the
owner's name of the database, that the user is trying to access.
(Or is there already a way to easily do this?)
Jared
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jared Sulem | 2001-04-24 14:32:45 | Re: Restricting user access to databases |
| Previous Message | Cedar Cox | 2001-04-24 10:57:18 | Re: [SQL] select ... for update in plpgsql |