Re: Database Security

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Kalai R *EXTERN*" <softlinne(dot)kv(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Database Security
Date: 2009-08-17 07:25:59
Message-ID: D960CB61B694CF459DCFB4B0128514C203937ECC@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kalai R wrote:
> i am near to PostgreSql. I create a database by the
> superuser. Then i create another logon user. Now how can i
> protect my database from the new user. i want to ban the
> access and view the database to the new user.It can done by
> an entry in pg_hba file. Is there any other way to secure my
> database(like setting password)?. Please help to solve my problem.

Since PostgreSQL 8.3:

REVOKE CONNECT ON DATABASE dbname FROM PUBLIC;
GRANT CONNECT ON DATABASE dbname TO user1, user2, user3;

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scara Maccai 2009-08-17 07:38:26 I: Re: totally different plan when using partitions
Previous Message Peter Eisentraut 2009-08-17 07:20:58 Re: plpgsql function to validate e-mail