From: Arcadius A. <ahouans@sh.cvut.cz>
To: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Help with privilege or pg_hba.conf
Date: Sat, 19 Jul 2003 21:04:21 +0200
Message-ID: <bfc4ln$apl$1@main.gmane.org> (raw)
Hello!
I have a Unix box running PostgreSQL 7.3.3.
So far, I have been the only one user of the DB server...and I didn't have
any problem using it with the JDBC driver.
Now, a friend of mine wants to use the DB too for doing web stuffs(PHP,
JSP).... so I need to create a new user on PostgreSQL. this has been done
easily.
Now, I don't want the new user (his username is "cool",and he has a
password ) to access other DBs on my server... I want him to access ONLY a
database named "cool" that he owns
(as user "cool", I have created the DB "cool"... and I want user "cool" to
access ONLY DB "cool" and do any operation on it).
How can this be done?
I've been trying to modify "pg_hba.conf" but with no luck .... as user
"cool", after I connect to the DB server via psql and I do "\c anotherdb",
user "cool" can still connect to "anotherdb".
my "pg_hba.conf" can be found at http://ahouans.sh.cvut.cz/pg_hba.txt
Thanks in advance.
Have a nice weekend!
Arcadius Ahouansou.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: ahouans@sh.cvut.cz, pgsql-general@postgresql.org
Subject: Re: Help with privilege or pg_hba.conf
In-Reply-To: <bfc4ln$apl$1@main.gmane.org>
References: <bfc4ln$apl$1@main.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox