From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: 7.3 and user permissions
Date: Wed, 13 Jul 2005 12:49:11 -0400
Message-ID: <9313.1121273351@sss.pgh.pa.us> (raw)
In-Reply-To: <1d219a6f05071308424e3d4199@mail.gmail.com>
References: <1d219a6f05071308424e3d4199@mail.gmail.com>
Chris Hoover <revoohc@gmail.com> writes:
> I'm having a strange issue. I just created a new user with createdb
> and createuser permissions. The user only has permissions to view the
> data in one database. However, when I login to any db as him, I am
> able to select data from tables that he has no select permisisons on.
"createuser" actually means "superuser" ... does that make it clearer?
PG 8.1 will have a privilege level that allows creation of users without
full superuserdom, but no existing release does.
> Also, I would really prefer that this user only have access to his one
> db and not able to see anything in the other db's. Is this possible?
Database connection privileges are controlled by pg_hba.conf; you could
adjust that file to allow this user access to only his own database.
Better take away his superuser rights first though, else he could undo
the change if he chose to.
regards, tom lane
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: tgl@sss.pgh.pa.us, revoohc@gmail.com
Subject: Re: 7.3 and user permissions
In-Reply-To: <9313.1121273351@sss.pgh.pa.us>
References: <1d219a6f05071308424e3d4199@mail.gmail.com> <9313.1121273351@sss.pgh.pa.us>
* 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