Re: [ADMIN] Access setting for users, problem

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: milang(at)tal(dot)org (Kaj-Michael Lang)
Cc: bmccoy(at)lan2wan(dot)com, pgsql-admin(at)hub(dot)org
Subject: Re: [ADMIN] Access setting for users, problem
Date: 1998-05-22 03:35:39
Message-ID: 199805220335.XAA18414@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>
> >> We are going to give all our shell users access to Postgres so that
> >> every user has their own database that they use as much as they like but
> >> so that they can't create new databases. Also these databases should be
> >> totaly private to the user that owns it (ok, the "postgres" should have
> >> access to them) so that nobbody else can
> >> connect/select/insert/update/create/drop/etc.
> >
> >The short answer: use the 'createuser' command via the postgres superuser
> >and follow the instructions
> >
> >The long answer: read the PostgreSQL Administrator's Guide. It describes
> >it more detail how to set up users and access to different databases.
>
>
> I did just that... but it did't say anything about howto restrict a db to just ONE user. I wan't it so that *only* the owner of the db has access to it. I haven't found anything in the docs on this.

pg_hba.conf

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Craig Silva 1998-05-22 06:43:46 createuser www-data ????
Previous Message Kaj-Michael Lang 1998-05-21 21:53:49 Re: [ADMIN] Access setting for users, problem